9 references to _cache
System.Net.Security (9)
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (9)
53if (_cache.TryGetValue(key, out THandle? handle) && handle.TryAddRentCount()) 73cached = _cache.GetOrAdd(key, handle); 111var count = _cache.Count; 115lock (_cache) 119if (_cache.Count >= count) 123NetEventSource.Info(this, $"Current size: {_cache.Count}."); 126foreach ((TKey key, THandle handle) in _cache) 140bool removed = _cache.TryRemove(key, out _); 150NetEventSource.Info(this, $"New size: {_cache.Count}.");