Example #1
0
 public static void RemoveCacheItem(System.Web.Caching.Cache cache, BaseCacheNames key)
 {
     cache.Remove(key.ToString());
 }
Example #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));
 }
Example #3
0
 public static void RemoveCacheItem(HtmlHelper helper, BaseCacheNames key)
 {
     RemoveCacheItem(helper.ViewContext.HttpContext.Cache, key);
 }