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