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); } }
public void Remove(CacheKey cacheKey) { _redisCacheEngine.Remove(cacheKey); _memoryCacheEngine.Remove(cacheKey); }
protected virtual void Remove(ICacheable cacheableItem, CacheProfile cacheProfile, ICacheEngine cacheEngine) { cacheEngine.Remove(CacheKey.ForProfile(cacheProfile) .WithKey(cacheableItem.CacheItemKey) .Create()); }