2 instantiations of CoherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
58
_coherentState = new
CoherentState
();
348
CoherentState oldState = Interlocked.Exchange(ref _coherentState, new
CoherentState
());
13 references to CoherentState
Microsoft.Extensions.Caching.Memory (13)
MemoryCache.cs (13)
34
private
CoherentState
_coherentState;
92
/// See comment on <see cref="
CoherentState
"/>.
137
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
210
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
227
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
264
private bool PostProcessTryGetValue(
CoherentState
coherentState, CacheEntry? entry, out object? result)
325
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
348
CoherentState
oldState = Interlocked.Exchange(ref _coherentState, new CoherentState());
468
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
487
private bool UpdateCacheSizeExceedsCapacity(CacheEntry entry, CacheEntry? priorEntry,
CoherentState
coherentState)
548
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
577
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
582
private void Compact(long removalSizeTarget, Func<CacheEntry, long> computeEntrySize,
CoherentState
coherentState)