Esempio n. 1
0
 public static void RemoveCacheItem(System.Web.Caching.Cache cache, BaseCacheNames key)
 {
     cache.Remove(key.ToString());
 }
Esempio n. 2
0
 public static object GetInsertCacheItem(HtmlHelper helper, BaseCacheNames key, Delegate action, object[] args, bool flushCache = false)
 {
     return(GetInsertCacheItem(helper.ViewContext.HttpContext.Cache, key.ToString(), action, args, flushCache));
 }
Esempio n. 3
0
 public static void RemoveCacheItem(HtmlHelper helper, BaseCacheNames key)
 {
     RemoveCacheItem(helper.ViewContext.HttpContext.Cache, key);
 }