private void EvictFromHandle(string key, string region, BaseCacheHandle <TCacheValue> handle) { if (Logger.IsEnabled(LogLevel.Debug)) { Logger.LogDebug( "Evicting '{0}:{1}' from handle '{2}'.", region, key, handle.Configuration.Name); } bool result; if (string.IsNullOrWhiteSpace(region)) { result = handle.Remove(key); } else { result = handle.Remove(key, region); } if (result) { handle.Stats.OnRemove(region); } }
private void EvictFromHandle(string key, string region, BaseCacheHandle <TCacheValue> handle) { if (_logTrace) { Logger.LogTrace( "Evict [{0}:{1}] from handle '{2}'.", region, key, handle.Configuration.Name); } bool result; if (string.IsNullOrWhiteSpace(region)) { result = handle.Remove(key); } else { result = handle.Remove(key, region); } if (result) { handle.Stats.OnRemove(region); } }