2 writes to _coherentState
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
55_coherentState = new CoherentState(); 300CoherentState oldState = Interlocked.Exchange(ref _coherentState, new CoherentState());
10 references to _coherentState
Microsoft.Extensions.Caching.Memory (10)
MemoryCache.cs (10)
78public int Count => _coherentState.Count; 87foreach (KeyValuePair<object, CacheEntry> pairs in _coherentState._entries) 100internal long Size => _coherentState.Size; 143CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 219CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 278CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 332_coherentState.RemoveEntry(entry, _options); 424CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 505CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime 534CoherentState coherentState = _coherentState; // Clear() can update the reference in the meantime