DataSet dset = new DataSet(); string cacheKey = "CoverageDataTable"; object cacheItem = Cache[cacheKey] as DataTable; if (cacheItem == null) { dset = (DataSet)_obj.GetAllContinent(); cacheItem = dset.Tables[0]; Cache.Insert(cacheKey, cacheItem, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromHours(5), CacheItemPriority.High, null); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)