/* * private void RemoveUIntDataEntityFromCache(TEntity entity) * { * var dataEntity = entity as UIntDataEntity; * if (dataEntity != null) * { * // ReSharper disable once PossibleInvalidOperationException * var itemCacheKey = GetCacheKey(new object[] {dataEntity.DatabaseId.Value}); * lock (CacheLock) * { * Cache.Clear(itemCacheKey); * } * } * } */ private void RemoveIntDataEntityFromCache(TEntity entity) { // var dataEntity = entity as IntDataEntity; var dataEntity = entity; if (dataEntity != null) { // ReSharper disable once PossibleInvalidOperationException var itemCacheKey = GetCacheKey(new object[] { dataEntity.Id.Value }); lock (CacheLock) { Cache.Clear(itemCacheKey); } } }
public void Clear() { _cache.Clear(); }
public virtual void Clear() { _cache.Clear(); }
/// <summary> /// Clears all items in the web directory cache. This also clears out /// the pages cache because page routes are dependent on web directories. /// </summary> public void Clear() { _cache.Clear(); _pageCache.Clear(); }
public virtual void Clear() { IObjectCache cache = GetObjectCache(); cache.Clear(); }
public void Handle(AccessRightsChanged domainEvent) { _objectCache.Clear(OrganizationalUserContextCacheKeyFactory.Create(domainEvent.UserId)); }