Ejemplo n.º 1
0
 internal CacheCommon()
 {
     _cachePublic            = new Cache(0);
     _srefMultiple           = new SRefMultiple();
     _cacheMemoryStats       = new CacheMemoryStats(_srefMultiple);
     _enableMemoryCollection = true;
     _enableExpiration       = true;
 }
 internal CacheMemorySizePressure(SRefMultiple sizedRef)
 {
     throw new NotImplementedException();
     //_sizedRef = sizedRef;
     //_gen2Count = GC.CollectionCount(2);
     //_cacheSizeSamples = new long[2];
     //_cacheSizeSampleTimes = new DateTime[2];
     //_pressureHigh = 99;
     //_pressureMiddle = 98;
     //_pressureLow = 97;
     //_startupTime = DateTime.UtcNow;
     //base.InitHistory();
 }
Ejemplo n.º 3
0
 internal CacheMemoryStats(SRefMultiple sizedRef)
 {
     _pressureTotalMemory = new CacheMemoryTotalMemoryPressure();
     _pressureCacheSize   = new CacheMemorySizePressure(sizedRef);
 }