9 references to _stringEntries
Microsoft.Extensions.Caching.Memory (9)
MemoryCache.cs (9)
733_stringAltLookup = _stringEntries.GetAlternateLookup<ReadOnlySpan<char>>();
740=> key is string s ? _stringEntries.TryGetValue(s, out entry) : _nonStringEntries.TryGetValue(key, out entry);
749=> key is string s ? _stringEntries.TryRemove(s, out entry) : _nonStringEntries.TryRemove(key, out entry);
752=> key is string s ? _stringEntries.TryAdd(s, entry) : _nonStringEntries.TryAdd(key, entry);
755=> key is string s ? _stringEntries.TryUpdate(s, entry, comparison) : _nonStringEntries.TryUpdate(key, entry, comparison);
763foreach (KeyValuePair<string, CacheEntry> entry in _stringEntries)
775foreach (KeyValuePair<string, CacheEntry> pairs in _stringEntries)
785private ICollection<KeyValuePair<string, CacheEntry>> StringEntriesCollection => _stringEntries;
788internal int Count => _stringEntries.Count + _nonStringEntries.Count;