13 references to Key
Microsoft.Extensions.Caching.Hybrid (13)
Internal\DefaultHybridCache.StampedeState.cs (1)
77public override string ToString() => Key.ToString();
Internal\DefaultHybridCache.StampedeStateT.cs (12)
170if ((Key.Flags & HybridCacheEntryFlags.DisableDistributedCacheRead) == 0) 180result = await Cache.GetFromL2Async(Key.Key, SharedToken).ConfigureAwait(false); 221if ((Key.Flags & HybridCacheEntryFlags.DisableUnderlyingData) == 0) 266bool skipSerialize = cacheItem is ImmutableCacheItem<T> && (Key.Flags & FlagsDisableL1AndL2Write) == FlagsDisableL1AndL2Write; 300if ((Key.Flags & HybridCacheEntryFlags.DisableDistributedCacheWrite) == 0) 305await Cache.SetL2Async(Key.Key, in buffer, _options, SharedToken).ConfigureAwait(false); 360Cache.RemoveStampedeState(in Key); 370Cache.RemoveStampedeState(in Key); 406Debug.Assert((Key.Flags & FlagsDisableL1AndL2Write) == FlagsDisableL1AndL2Write, "Only expected if L1+L2 disabled"); 463if ((Key.Flags & HybridCacheEntryFlags.DisableLocalCacheWrite) == 0) 465Cache.SetL1(Key.Key, value, _options); // we can do this without a TCS, for SetValue 470Cache.RemoveStampedeState(in Key);