cache trong mvc

Code Example - cache trong mvc

                
                        DataSet ds = System.Web.HttpContext.Current.Cache["CacheName"] as DataSet;
if (ds == null)
{
ds = CategoryDB.GetLastestNews(CategoryID, NoOfNews, LanguageCode);
System.Web.HttpContext.Current.Cache.Insert("CacheName", ds, null, DateTime.MaxValue, TimeSpan.FromMinutes(15));
}