2 writes to _backendCache
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (2)
83
_backendCache
= _options.DistributedCacheServiceKey is null
93
_backendCache
= null;
12 references to _backendCache
Microsoft.Extensions.Caching.Hybrid (12)
Internal\DefaultHybridCache.cs (8)
89
if (
_backendCache
is not null
90
&&
_backendCache
.GetType() == typeof(MemoryDistributedCache)
97
_features |=
_backendCache
switch
117
if (
_backendCache
is null)
133
_globalInvalidateTimestamp =
_backendCache
is null ? _zeroTimestamp : SafeReadTagInvalidationAsync(TagSet.WildcardTag);
136
internal IDistributedCache? BackendCache =>
_backendCache
;
284
return
_backendCache
is null ? default : new(
_backendCache
.RemoveAsync(key, cancellationToken));
Internal\DefaultHybridCache.L2.cs (4)
31
Task<byte[]?> pendingLegacy =
_backendCache
!.GetAsync(key, token);
46
IBufferDistributedCache cache = Unsafe.As<IBufferDistributedCache>(
_backendCache
!); // type-checked already
95
return new(
_backendCache
!.SetAsync(key, arr, options, token));
97
IBufferDistributedCache cache = Unsafe.As<IBufferDistributedCache>(
_backendCache
!); // type-checked already