NCache 4.6 - Online Documentation

Adding Data to Cache Asynchronously

Data can be added to NCache asynchronously using AddAsync method.
       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";
        CacheItem cacheItem = new CacheItem(product);
        string key = "Product:" + product.ProductID;
            cache.AddAsync(key, cacheItem, DSWriteOption.None, null);
        catch (Exception ex)
            // handle exception
See Also