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)
315
if (coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
381
if (
_allStats
is not null)
400
if (_coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
428
lock (
_allStats
!)
433
foreach (Stats stats in
_allStats
)
476
lock (
_allStats
!)
481
int lastIndex =
_allStats
.Count - 1;
485
_allStats
[indexToOverwrite] =
_allStats
[lastIndex];
486
_allStats
[indexToOverwrite].Index = indexToOverwrite;
489
_allStats
.RemoveAt(lastIndex);
490
_allStats
.TrimExcess();
496
lock (
_allStats
!)
498
current.Index =
_allStats
.Count;
499
_allStats
.Add(current);
513
if (coherentState.RemoveEntry(entry, _options) &&
_allStats
is not null)
676
if (actuallyRemoved > 0 &&
_allStats
is not null)