NCache 4.6 - Online Documentation

Adding Items to Cache with Named Tags

In this example, Add Operation overload is used in NCache to associate named tags previously created.
       To utilize the following APIs, 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, productNamedTag);
        catch (OperationFailedException ex)
            // handle exception
See Also