2 writes to _coherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
68_coherentState = new CoherentState(); 367CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState());
11 references to _coherentState
Microsoft.Extensions.Caching.Memory (11)
MemoryCache.cs (11)
96public int Count => _coherentState.Count; 102=> _coherentState.GetAllKeys(); 110internal long Size => _coherentState.Size; 153CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 226CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 243CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 344CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 400if (_coherentState.RemoveEntry(entry, _options) && _allStats is not null) 507CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 590CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 619CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime