8 references to Size
Microsoft.Extensions.Caching.Memory (8)
MemoryCache.cs (8)
120if (_options.HasSizeLimit && entry.Size < 0) 122throw new InvalidOperationException(SR.Format(SR.CacheEntryHasEmptySize, nameof(entry.Size), nameof(_options.SizeLimit))); 174Interlocked.Add(ref coherentState._cacheSize, -priorEntry.Size); 195Interlocked.Add(ref coherentState._cacheSize, -entry.Size); 290Interlocked.Add(ref coherentState._cacheSize, -entry.Size); 458long newSize = sizeRead + entry.Size; 500Compact(currentSize - (long)lowWatermark, entry => entry.Size, coherentState); 677Interlocked.Add(ref _cacheSize, -entry.Size);