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)
334
if (coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
400
if (
_allStats
is not null)
419
if (_coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
447
lock (
_allStats
!)
452
foreach (Stats stats in
_allStats
)
495
lock (
_allStats
!)
500
int lastIndex =
_allStats
.Count - 1;
504
_allStats
[indexToOverwrite] =
_allStats
[lastIndex];
505
_allStats
[indexToOverwrite].Index = indexToOverwrite;
508
_allStats
.RemoveAt(lastIndex);
509
_allStats
.TrimExcess();
515
lock (
_allStats
!)
517
current.Index =
_allStats
.Count;
518
_allStats
.Add(current);
532
if (coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
699
if (actuallyRemoved > 0 &&
_allStats
is not null)