1 write to _cache
Microsoft.VisualStudio.LanguageServices (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
8 references to _cache
Microsoft.VisualStudio.LanguageServices (8)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (8)
68var copy = new KeyValuePair<K, V>[_cache.Count]; 73_cache[key].Value); 105_cache.Remove(lastNode!.Value); 111_cache.Add(key, new CacheValue { Node = node, Value = value }); 120if (_cache.TryGetValue(key, out var result)) 129_cache[key] = result; 135if (_cache.Count == _capacity) 178if (_cache.TryGetValue(key, out var result))