9 references to Size
Microsoft.Extensions.Caching.Memory (9)
MemoryCache.cs (9)
131
if (_options.HasSizeLimit && entry.
Size
< 0)
133
throw new InvalidOperationException(SR.Format(SR.CacheEntryHasEmptySize, nameof(entry.
Size
), nameof(_options.SizeLimit)));
198
Interlocked.Add(ref coherentState._cacheSize, -entry.
Size
+ (priorEntry?.
Size
).GetValueOrDefault());
350
Interlocked.Add(ref coherentState._cacheSize, -entry.
Size
);
540
long newSize = sizeRead + entry.
Size
;
544
newSize -= priorEntry.
Size
;
602
Compact(currentSize - (long)lowWatermark, entry => entry.
Size
, coherentState);
847
Interlocked.Add(ref _cacheSize, -entry.
Size
);