コード例 #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);
 }