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