9 references to Size
Microsoft.Extensions.Caching.Memory (9)
MemoryCache.cs (9)
121
if (_options.HasSizeLimit && entry.
Size
< 0)
123
throw new InvalidOperationException(SR.Format(SR.CacheEntryHasEmptySize, nameof(entry.
Size
), nameof(_options.SizeLimit)));
188
Interlocked.Add(ref coherentState._cacheSize, -entry.
Size
+ (priorEntry?.
Size
).GetValueOrDefault());
283
Interlocked.Add(ref coherentState._cacheSize, -entry.
Size
);
455
long newSize = sizeRead + entry.
Size
;
459
newSize -= priorEntry.
Size
;
517
Compact(currentSize - (long)lowWatermark, entry => entry.
Size
, coherentState);
694
Interlocked.Add(ref _cacheSize, -entry.
Size
);