2 instantiations of CoherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
58_coherentState = new CoherentState(); 348CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState());
13 references to CoherentState
Microsoft.Extensions.Caching.Memory (13)
MemoryCache.cs (13)
34private CoherentState _coherentState; 92/// See comment on <see cref="CoherentState"/>. 137CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 210CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 227CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 264private bool PostProcessTryGetValue(CoherentState coherentState, CacheEntry? entry, out object? result) 325CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 348CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState()); 468CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 487private bool UpdateCacheSizeExceedsCapacity(CacheEntry entry, CacheEntry? priorEntry, CoherentState coherentState) 548CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 577CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 582private void Compact(long removalSizeTarget, Func<CacheEntry, long> computeEntrySize, CoherentState coherentState)