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