5 writes to _cacheSize
Microsoft.Extensions.Caching.Memory (5)
MemoryCache.cs (5)
188Interlocked.Add(ref coherentState._cacheSize, -entry.Size + (priorEntry?.Size).GetValueOrDefault()); 283Interlocked.Add(ref coherentState._cacheSize, -entry.Size); 468long original = Interlocked.CompareExchange(ref coherentState._cacheSize, newSize, sizeRead); 686internal long Size => Volatile.Read(ref _cacheSize); 694Interlocked.Add(ref _cacheSize, -entry.Size);