9 references to Size
Microsoft.Extensions.Caching.Memory (9)
MemoryCache.cs (9)
115
if (_options.HasSizeLimit && entry.
Size
< 0)
117
throw new InvalidOperationException(SR.Format(SR.CacheEntryHasEmptySize, nameof(entry.
Size
), nameof(_options.SizeLimit)));
182
Interlocked.Add(ref coherentState._cacheSize, -entry.
Size
+ (priorEntry?.
Size
).GetValueOrDefault());
331
Interlocked.Add(ref coherentState._cacheSize, -entry.
Size
);
498
long newSize = sizeRead + entry.
Size
;
502
newSize -= priorEntry.
Size
;
560
Compact(currentSize - (long)lowWatermark, entry => entry.
Size
, coherentState);
796
Interlocked.Add(ref _cacheSize, -entry.
Size
);