2 instantiations of CoherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
68_coherentState = new CoherentState(); 381CoherentState 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 240CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 257CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 294private bool PostProcessTryGetValue(CoherentState coherentState, CacheEntry? entry, out object? result) 358CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 381CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState()); 521CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 543private bool UpdateCacheSizeExceedsCapacity(CacheEntry entry, CacheEntry? priorEntry, CoherentState coherentState) 608CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 637CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 642private void Compact(long removalSizeTarget, Func<CacheEntry, long> computeEntrySize, CoherentState coherentState)