NCache 4.4 - Online Documentation

Overview

 
Using Tags, keywords(s) can be associated with cache items. Data can be marked with tags which act as identifiers for cache items. For instance in an online library there are different genres of books, for each different category a tag identifier can be added. Tags for authors, year of publication etc. can also be added. Note here that a single author can have two books written under two different categories. And also multiple different authors may have publications in the same year, thus cache search can be made for each tag filter separately i.e. for all publications in year 2000 or for all publications of JohnKeats, etc. These filter tags can be used in combination with each other like all publications of John Keats in year 2000.
 
Retrieve/Remove using Tags: These identifying marks can help the user in finding and/or removing items from the cache.
 
Support for Multiple Tags: More than one keyword with any cache item.
 
Many-to-Many Grouping: Tags provide a many-to-many grouping where one tag can contain multiple cached items and one cached item can belong to multiple tags. NCache provides a Tag class in which the user can specify one or more tags associated with cached items.
 
Case Sensitive: Tags are case sensitive.
 
Query using Tags: NCache also supports tags in queries.
 
For example if the user tags your cache item with a list of tags i.e. “bookinformation” having tags like author, yearofpublication category, the items can be fetched through API which matches with any one tag (e.g., Book where author or yearofpublication or category is matched) from the list or the items can be fetched where all tags (e.g., book where author and yearofpublication and category are matched) in list match. Furthermore, the cache can also be searched on the basis of only one tag (i.e. only author is a match). Items can also be removed from cache on the basis of these marks of identification. The same filters of tags can be used for removal of items. These different filters can be used according to specific business needs.
 
See Also