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