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)
59if (_physicalMemoryMonitor.IsAboveHighPressure() || _cacheMemoryMonitor.IsAboveHighPressure()) 70if ((_cacheMemoryMonitor.PressureLast > _cacheMemoryMonitor.PressureLow / 2) 100return _cacheMemoryMonitor.PressureLast; 109return Math.Max(_physicalMemoryMonitor.GetPercentToTrim(_lastTrimTime, _lastTrimPercent), _cacheMemoryMonitor.GetPercentToTrim(_lastTrimTime, _lastTrimPercent)); 157[MemberNotNull(nameof(_cacheMemoryMonitor))] 221_cacheMemoryMonitor.Update(); 230return _cacheMemoryMonitor.MemoryLimit; 345_cacheMemoryMonitor?.Dispose(); 387_cacheMemoryMonitor.SetLimit(cacheMemoryLimitMegabytes);