예제 #1
0
        public virtual void Remove(string key)
        {
            try
            {
                if (IsDisabled)
                {
                    return;
                }

                _cache.Remove(key);
            }
            catch (Exception e)
            {
                throw new CacheServiceException(string.Format("Error removing key {0} in cache {1}", key, CacheId), e);
            }
        }
예제 #2
0
 public void Remove(CacheKey cacheKey)
 {
     _redisCacheEngine.Remove(cacheKey);
     _memoryCacheEngine.Remove(cacheKey);
 }
예제 #3
0
 protected virtual void Remove(ICacheable cacheableItem, CacheProfile cacheProfile, ICacheEngine cacheEngine)
 {
     cacheEngine.Remove(CacheKey.ForProfile(cacheProfile)
                        .WithKey(cacheableItem.CacheItemKey)
                        .Create());
 }