NCache 4.6 - Online Documentation

Adding Named Tags through CacheItem

 
In this example, named tags are set in NCache by assigning them as a property of CacheItem.
 
      To utilize the following APIs, include the following namespace in your application: Alachisoft.NCache.Web.Caching.
 
        CacheItem cacheItem = new CacheItem(product);
        cacheItem.NamedTags = productNamedTag;
 
        try
        {
            cache.Add(key, cacheItem);
        }
        catch (OperationFailedException ex)
        {
            // handle exception
        }
 
 
See Also