Example #1
0
 public ActionResult ClearCache(CacheIndexModel model)
 {
     foreach (var cacheKey in _cacheKeyManager.AllKeys)
     {
         _cacheManager.Remove(cacheKey);
     }
     return Template(model.CreateTemplate(ControllerContext, _cacheManager, _cacheKeyManager));
 }
Example #2
0
 public ActionResult Cache(CacheIndexModel model)
 {
     return Template(model.CreateTemplate(ControllerContext, _cacheManager, _cacheKeyManager));
 }