13 references to Key
Microsoft.Extensions.Caching.Hybrid (13)
Internal\DefaultHybridCache.StampedeState.cs (1)
79public override string ToString() => Key.ToString();
Internal\DefaultHybridCache.StampedeStateT.cs (12)
167if ((Key.Flags & HybridCacheEntryFlags.DisableDistributedCacheRead) == 0) 169var result = await Cache.GetFromL2Async(Key.Key, SharedToken).ConfigureAwait(false); 179if ((Key.Flags & HybridCacheEntryFlags.DisableUnderlyingData) == 0) 194bool skipSerialize = cacheItem is ImmutableCacheItem<T> && (Key.Flags & FlagsDisableL1AndL2) == FlagsDisableL1AndL2; 228if ((Key.Flags & HybridCacheEntryFlags.DisableDistributedCacheWrite) == 0) 231await Cache.SetL2Async(Key.Key, in buffer, _options, SharedToken).ConfigureAwait(false); 266Cache.RemoveStampedeState(in Key); 276Cache.RemoveStampedeState(in Key); 312Debug.Assert((Key.Flags & FlagsDisableL1AndL2) == FlagsDisableL1AndL2, "Only expected if L1+L2 disabled"); 360if ((Key.Flags & HybridCacheEntryFlags.DisableLocalCacheWrite) == 0) 362Cache.SetL1(Key.Key, value, _options); // we can do this without a TCS, for SetValue 367Cache.RemoveStampedeState(in Key);