2 writes to _coherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
57_coherentState = new CoherentState(); 295CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState());
10 references to _coherentState
Microsoft.Extensions.Caching.Memory (10)
MemoryCache.cs (10)
80public int Count => _coherentState.Count; 86=> _coherentState.GetAllKeys(); 94internal long Size => _coherentState.Size; 137CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 213CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 272CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 327_coherentState.RemoveEntry(entry, _options); 419CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 499CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 528CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime