Property Group
Group
Groups help you create a logical partition of your cached data for easy retrieval. Group information can be added with an item by setting the Group property of CacheItem. This reduces the complication of using API overloads for adding groups at the time of adding/updating item in the cache.
Declaration
public string Group { get; set; }
Property Value
Type | Description |
---|---|
System.String | Name of a group. |
Examples
The following example sets group of a CacheItem.
Product product = new Product();
product.Id = 1;
product.Name = "Chai";
CacheItem item = new CacheItem(product);
item.Group = "group_name";