9 references to _stringEntries
Microsoft.Extensions.Caching.Memory (9)
MemoryCache.cs (9)
728_stringAltLookup = _stringEntries.GetAlternateLookup<ReadOnlySpan<char>>();
735=> key is string s ? _stringEntries.TryGetValue(s, out entry) : _nonStringEntries.TryGetValue(key, out entry);
744=> key is string s ? _stringEntries.TryRemove(s, out entry) : _nonStringEntries.TryRemove(key, out entry);
747=> key is string s ? _stringEntries.TryAdd(s, entry) : _nonStringEntries.TryAdd(key, entry);
750=> key is string s ? _stringEntries.TryUpdate(s, entry, comparison) : _nonStringEntries.TryUpdate(key, entry, comparison);
758foreach (KeyValuePair<string, CacheEntry> entry in _stringEntries)
770foreach (KeyValuePair<string, CacheEntry> pairs in _stringEntries)
780internal int Count => _stringEntries.Count + _nonStringEntries.Count;
787if (entry.Key is string s ? _stringEntries.TryRemove(KeyValuePair.Create(s, entry))