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