3 writes to _cache
NuGet.Commands (3)
src\nuget-client\build\Shared\TaskResultCache.cs (3)
36_cache = new(comparer); 46_cache = new(concurrencyLevel: Environment.ProcessorCount, capacity); 55_cache = new();
5 references to _cache
NuGet.Commands (5)
src\nuget-client\build\Shared\TaskResultCache.cs (5)
62public ICollection<TKey> Keys => _cache.Keys; 88if (!refresh && _cache.TryGetValue(key, out Task<TValue>? value)) 105if (!refresh && _cache.TryGetValue(key, out value)) 110return _cache[key] = valueFactory(state) 138return _cache.TryGetValue(key, out value);