12 references to Key
Microsoft.Extensions.Caching.Hybrid (12)
Internal\DefaultHybridCache.StampedeState.cs (1)
77
public override string ToString() =>
Key
.ToString();
Internal\DefaultHybridCache.StampedeStateT.cs (11)
172
HybridCacheEntryFlags activeFlags =
Key
.Flags;
176
if (!ValidateUnicodeCorrectness(Cache._logger,
Key
.Key, CacheItem.Tags))
196
result = await Cache.GetFromL2DirectAsync(
Key
.Key, SharedToken).ConfigureAwait(false);
233
result.AsArraySegment(),
Key
.Key, CacheItem.Tags, Cache, out ArraySegment<byte> payload, out TimeSpan remainingTime,
374
await Cache.SetL2Async(
Key
.Key, cacheItem, in buffer, _options, SharedToken).ConfigureAwait(false);
429
Cache.RemoveStampedeState(in
Key
);
439
Cache.RemoveStampedeState(in
Key
);
475
Debug.Assert((
Key
.Flags & FlagsDisableL1AndL2Write) == FlagsDisableL1AndL2Write, "Only expected if L1+L2 disabled");
534
if ((
Key
.Flags & HybridCacheEntryFlags.DisableLocalCacheWrite) == 0)
536
Cache.SetL1(
Key
.Key, value, _options, maxRelativeTime); // we can do this without a TCS, for SetValue
541
Cache.RemoveStampedeState(in
Key
);