1 write to _allStats
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
62
_allStats
= new List<Stats>();
13 references to _allStats
Microsoft.Extensions.Caching.Memory (13)
MemoryCache.cs (13)
362
if (
_allStats
is not null)
404
lock (
_allStats
!)
409
foreach (Stats stats in
_allStats
)
452
lock (
_allStats
!)
457
int lastIndex =
_allStats
.Count - 1;
461
_allStats
[indexToOverwrite] =
_allStats
[lastIndex];
462
_allStats
[indexToOverwrite].Index = indexToOverwrite;
465
_allStats
.RemoveAt(lastIndex);
466
_allStats
.TrimExcess();
472
lock (
_allStats
!)
474
current.Index =
_allStats
.Count;
475
_allStats
.Add(current);