1 write to _allStats
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
72
_allStats
= new List<Stats>();
17 references to _allStats
Microsoft.Extensions.Caching.Memory (17)
MemoryCache.cs (17)
329
if (coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
395
if (
_allStats
is not null)
414
if (_coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
442
lock (
_allStats
!)
447
foreach (Stats stats in
_allStats
)
490
lock (
_allStats
!)
495
int lastIndex =
_allStats
.Count - 1;
499
_allStats
[indexToOverwrite] =
_allStats
[lastIndex];
500
_allStats
[indexToOverwrite].Index = indexToOverwrite;
503
_allStats
.RemoveAt(lastIndex);
504
_allStats
.TrimExcess();
510
lock (
_allStats
!)
512
current.Index =
_allStats
.Count;
513
_allStats
.Add(current);
527
if (coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
694
if (actuallyRemoved > 0 &&
_allStats
is not null)