2 writes to _coherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
68
_coherentState
= new CoherentState();
381
CoherentState oldState = Interlocked.Exchange(ref
_coherentState
, new CoherentState());
11 references to _coherentState
Microsoft.Extensions.Caching.Memory (11)
MemoryCache.cs (11)
96
public int Count =>
_coherentState
.Count;
102
=>
_coherentState
.GetAllKeys();
110
internal long Size =>
_coherentState
.Size;
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
358
CoherentState coherentState =
_coherentState
; // Clear() can update the reference in the meantime
414
if (
_coherentState
.RemoveEntry(entry, _options) && _allStats is not null)
521
CoherentState coherentState =
_coherentState
; // Clear() can update the reference in the meantime
608
CoherentState coherentState =
_coherentState
; // Clear() can update the reference in the meantime
637
CoherentState coherentState =
_coherentState
; // Clear() can update the reference in the meantime