public virtual void Clear()
 {
     try
     {
         _cache.Clear();
     }
     catch (Exception e)
     {
         throw new CacheServiceException(string.Format("Error clearing cache {0}", CacheId), e);
     }
 }
Exemple #2
0
 public void Clear()
 {
     _redisCacheEngine.Clear();
     _memoryCacheEngine.Clear();
 }
 public ActionResult Clear()
 {
     _cacheEngine.Clear();
     return(Content("Cache Flushed"));
 }
 protected virtual void Flush(CacheInvalidationItem item, CacheProfile cacheProfile, ICacheEngine cacheEngine)
 {
     cacheEngine.Clear(cacheProfile, item.CacheItemKey);
 }