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