NCache 4.6 - Online Documentation

Adding Items to Cache With Tags

In this example Add Operation overload is used to associate tags that were previously created in NCache.
      To utilize the API, include the following namespace in your application: Alachisoft.NCache.Web.Caching.
        Product product = new Product();
        product.ProductID = 1001;
        product.ProductName = "Chai";
        string key = "Product:" + product.ProductID;
            cache.Add(key, product, productTags);
        catch (OperationFailedException ex)
            // handle exception
See Also