Exemple #1
0
 public static void RemoveMenuViewComponentResult(this ICache cache, string code, string cultureCode)
 {
     cache.Remove(ICacheExtensions.GetMenuViewComponentResultKey(code, cultureCode));
 }
Exemple #2
0
 public static IViewComponentResult GetMenuViewComponentResultWithDefaultValue(this ICache cache, string code, Func <IViewComponentResult> defaultValueFunc)
 {
     return(cache.GetWithDefaultValue(
                ICacheExtensions.GetMenuViewComponentResultKey(code), defaultValueFunc
                ));
 }