• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

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 cache.

Declaration
public string Group { get; set; }
Property Value
Type Description
System.String

Groups help you create a logical partition of your cached data for easy retrieval.

Examples

Example sets group of a cache item

Product product = new Product();
product.Id = 1;
product.Name = "Chai";

CacheItem item = new CacheItem(product);
item.Group = "group_name";
Back to top Copyright © 2017 Alachisoft