1 write to _memoryLimit
System.Runtime.Caching (1)
System\Runtime\Caching\CacheMemoryMonitor.cs (1)
228_memoryLimit = cacheMemoryLimit != 0 ?
9 references to _memoryLimit
System.Runtime.Caching (9)
System\Runtime\Caching\CacheMemoryMonitor.cs (9)
37get { return _memoryLimit; } 184if (_memoryLimit <= 0) 192if (cacheSize > _memoryLimit) 194cacheSize = _memoryLimit; 203int result = (int)(cacheSize * 100 / _memoryLimit); 213if (cacheSize > _memoryLimit) 215percent = Math.Min(100, (int)((cacheSize - _memoryLimit) * 100L / cacheSize)); 232Dbg.Trace("MemoryCacheStats", "CacheMemoryMonitor.SetLimit: _memoryLimit=" + (_memoryLimit >> MEGABYTE_SHIFT) + "Mb"); 234if (_memoryLimit > 0)