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)
329if (coherentState.RemoveEntry(entry, _options) && _allStats is not null) 395if (_allStats is not null) 414if (_coherentState.RemoveEntry(entry, _options) && _allStats is not null) 442lock (_allStats!) 447foreach (Stats stats in _allStats) 490lock (_allStats!) 495int lastIndex = _allStats.Count - 1; 499_allStats[indexToOverwrite] = _allStats[lastIndex]; 500_allStats[indexToOverwrite].Index = indexToOverwrite; 503_allStats.RemoveAt(lastIndex); 504_allStats.TrimExcess(); 510lock (_allStats!) 512current.Index = _allStats.Count; 513_allStats.Add(current); 527if (coherentState.RemoveEntry(entry, _options) && _allStats is not null) 694if (actuallyRemoved > 0 && _allStats is not null)