NCache 4.6 - Online Documentation

Adding and Updating Indexed Items

Before searching, items need to be indexed and added in cache. For adding indexed items, the basic APIs of add and insert as mentioned in NCache Basic Operations  should be used.
       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";
        product.UnitsInStock = 250;
        product.Category = 4;
        string key = "Product:" + product.ProductID;
            cache.Add(key, product);
        catch (OperationFailedException ex)
            //handle exception
See Also