1 write to _cacheMemoryMonitor
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheStatistics.cs (1)
163
_cacheMemoryMonitor
= new CacheMemoryMonitor(_memoryCache, _configCacheMemoryLimitMegabytes);
10 references to _cacheMemoryMonitor
System.Runtime.Caching (10)
System\Runtime\Caching\MemoryCacheStatistics.cs (10)
59
if (_physicalMemoryMonitor.IsAboveHighPressure() ||
_cacheMemoryMonitor
.IsAboveHighPressure())
70
if ((
_cacheMemoryMonitor
.PressureLast >
_cacheMemoryMonitor
.PressureLow / 2)
100
return
_cacheMemoryMonitor
.PressureLast;
109
return Math.Max(_physicalMemoryMonitor.GetPercentToTrim(_lastTrimTime, _lastTrimPercent),
_cacheMemoryMonitor
.GetPercentToTrim(_lastTrimTime, _lastTrimPercent));
157
[MemberNotNull(nameof(
_cacheMemoryMonitor
))]
221
_cacheMemoryMonitor
.Update();
230
return
_cacheMemoryMonitor
.MemoryLimit;
345
_cacheMemoryMonitor
?.Dispose();
387
_cacheMemoryMonitor
.SetLimit(cacheMemoryLimitMegabytes);