2 instantiations of CoherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
54
_coherentState = new
CoherentState
();
307
CoherentState oldState = Interlocked.Exchange(ref _coherentState, new
CoherentState
());
11 references to CoherentState
Microsoft.Extensions.Caching.Memory (11)
MemoryCache.cs (11)
30
private
CoherentState
_coherentState;
97
/// See comment on <see cref="
CoherentState
"/>.
142
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
226
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
285
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
307
CoherentState
oldState = Interlocked.Exchange(ref _coherentState, new CoherentState());
431
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
447
private bool UpdateCacheSizeExceedsCapacity(CacheEntry entry,
CoherentState
coherentState)
488
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
517
CoherentState
coherentState = _coherentState; // Clear() can update the reference in the meantime
522
private void Compact(long removalSizeTarget, Func<CacheEntry, long> computeEntrySize,
CoherentState
coherentState)