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