2 writes to _coherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
54
_coherentState
= new CoherentState();
307
CoherentState oldState = Interlocked.Exchange(ref
_coherentState
, new CoherentState());
10 references to _coherentState
Microsoft.Extensions.Caching.Memory (10)
MemoryCache.cs (10)
77
public int Count =>
_coherentState
.Count;
86
foreach (KeyValuePair<object, CacheEntry> pairs in
_coherentState
._entries)
99
internal long Size =>
_coherentState
.Size;
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
339
_coherentState
.RemoveEntry(entry, _options);
431
CoherentState coherentState =
_coherentState
; // Clear() can update the reference in the meantime
488
CoherentState coherentState =
_coherentState
; // Clear() can update the reference in the meantime
517
CoherentState coherentState =
_coherentState
; // Clear() can update the reference in the meantime