1 write to _cache
rzc (1)
ConcurrentLruCache.cs (1)
36
_cache
= new Dictionary<TKey, CacheValue>(capacity, comparer);
8 references to _cache
rzc (8)
ConcurrentLruCache.cs (8)
61
return
_cache
.Count;
117
var kvp = new KeyValuePair<TKey, TValue>(key,
_cache
[key].Value);
131
if (
_cache
.TryGetValue(key, out var result))
161
_cache
.Remove(lastNode.Value);
167
_cache
.Add(key, new CacheValue(value, node));
176
if (
_cache
.TryGetValue(key, out var result))
182
if (
_cache
.Count == _capacity)
193
return
_cache
.Remove(key);