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