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