Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the important tags and their attributes commonly used in OSCache

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is about the important tags and their attributes that are commonly used in OSCache. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Groups= "group1,group2,." The group tag identifies which groups this cache entry belongs to. It is convenient to refresh the appropriate grouping.

Eg.

-

Suppose our database stores dynamic group classification and personnel information. Each of them has its own information to store. Assuming that we need to display two kinds of information at the same time, the following example is to set the

This content is cached and assigned to two different groups. When the group classification or personnel information is updated, there are some ways to refresh the appropriate grouping so that the next time

Rebuild when you manage this page.

... Show group classification.

... Display personnel information.

-

The usecached tag attribute needs to be nested in another tag (usually used with try..catch) to tell his superior whether to apply a cached translation. There are differences.

All content, including the superior tag, will always be replaced (hint: Missing cached content).

Use= "true | false": whether the tag is applied. The default is True. Generally omitted.

Eg.

-

.. Content..

. Other content

Inside catch: YES

There are two types of page output when an exception occurs:

1 >. IsUsed=false

.. Content..

. Other content

Inside catch: YES

2 >. IsUsed=true

Missing cached content

-

= flush tag attribute this tag is used to refresh the cache at run time. This tag is very useful because it can be placed in the administrative section of the Web program so that the administrator can decide

Set when to refresh the cache.

Scope= "session | application | null": used to determine which buffer domain to refresh. Using NULL will refresh all caches, namely session and application.

Key= "xxx": used to identify entries to be refreshed. When both key and scope are given, the buffer entries in the Scope identified by Key are flushed. Scope. Key must be specified when specifying Scope.

Group= "groupname": specifies a set of buffered records to refresh all buffered entries identified by this group. Scope. Group must be specified when specifying Scope.

Eg.

-

The Application domain will be refreshed

Cache entries in session domain identified by "myKey" will be flushed

All cached entries in the Application domain identified by "myGroup" will be flushed

-

Thank you for reading! This is the end of this article on "what are the important tags and their attributes commonly used in OSCache?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report