2 instantiations of CoherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
68_coherentState = new CoherentState(); 367CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState());
13 references to CoherentState
Microsoft.Extensions.Caching.Memory (13)
MemoryCache.cs (13)
36private CoherentState _coherentState; 108/// See comment on <see cref="CoherentState"/>. 153CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 226CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 243CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 280private bool PostProcessTryGetValue(CoherentState coherentState, CacheEntry? entry, out object? result) 344CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 367CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState()); 507CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 529private bool UpdateCacheSizeExceedsCapacity(CacheEntry entry, CacheEntry? priorEntry, CoherentState coherentState) 590CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 619CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 624private void Compact(long removalSizeTarget, Func<CacheEntry, long> computeEntrySize, CoherentState coherentState)