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