Implemented interface member:
property
Key
Microsoft.Extensions.Caching.Memory.ICacheEntry.Key
1 write to Key
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.cs (1)
43Key = key;
9 references to Key
Microsoft.Extensions.Caching.Memory (9)
CacheEntry.CacheEntryTokens.cs (1)
130registration.EvictionCallback?.Invoke(entry.Key, entry.Value, entry.EvictionReason, registration.State);
MemoryCache.cs (8)
154if (coherentState.TryGetValue(entry.Key, out CacheEntry? priorEntry)) 173entryAdded = coherentState.TryAdd(entry.Key, entry); 178entryAdded = coherentState.TryUpdate(entry.Key, entry, priorEntry); 185entryAdded = coherentState.TryAdd(entry.Key, entry); 543Debug.Assert(entry.Key == priorEntry.Key); 838if (entry.Key is string s ? _stringEntries.TryRemove(KeyValuePair.Create(s, entry)) 839: _nonStringEntries.TryRemove(KeyValuePair.Create(entry.Key, entry)))