1 write to _cache
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
40
_cache
= new Dictionary<K, CacheValue>(capacity);
8 references to _cache
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (8)
68
var 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 });
120
if (
_cache
.TryGetValue(key, out var result))
129
_cache
[key] = result;
135
if (
_cache
.Count == _capacity)
178
if (
_cache
.TryGetValue(key, out var result))