2 instantiations of CoherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
68_coherentState = new CoherentState(); 386CoherentState 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"/>. 158CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 245CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 262CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 299private bool PostProcessTryGetValue(CoherentState coherentState, CacheEntry? entry, out object? result) 363CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 386CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState()); 526CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 548private bool UpdateCacheSizeExceedsCapacity(CacheEntry entry, CacheEntry? priorEntry, CoherentState coherentState) 613CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 642CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 647private void Compact(long removalSizeTarget, Func<CacheEntry, long> computeEntrySize, CoherentState coherentState)