9 references to _stringEntries
Microsoft.Extensions.Caching.Memory (9)
MemoryCache.cs (9)
797_stringAltLookup = _stringEntries.GetAlternateLookup<ReadOnlySpan<char>>();
818=> key is string s ? _stringEntries.TryGetValue(s, out entry) : _nonStringEntries.TryGetValue(key, out entry);
827=> key is string s ? _stringEntries.TryRemove(s, out entry) : _nonStringEntries.TryRemove(key, out entry);
830=> key is string s ? _stringEntries.TryAdd(s, entry) : _nonStringEntries.TryAdd(key, entry);
833=> key is string s ? _stringEntries.TryUpdate(s, entry, comparison) : _nonStringEntries.TryUpdate(key, entry, comparison);
841foreach (KeyValuePair<string, CacheEntry> entry in _stringEntries)
853foreach (KeyValuePair<string, CacheEntry> pairs in _stringEntries)
863internal int Count => _stringEntries.Count + _nonStringEntries.Count;
870if (entry.Key is string s ? _stringEntries.TryRemove(KeyValuePair.Create(s, entry))