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