2 writes to _backendCache
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (2)
82
_backendCache
= _options.DistributedCacheServiceKey is null
92
_backendCache
= null;
12 references to _backendCache
Microsoft.Extensions.Caching.Hybrid (12)
Internal\DefaultHybridCache.cs (8)
88
if (
_backendCache
is not null
89
&&
_backendCache
.GetType() == typeof(MemoryDistributedCache)
96
_features |=
_backendCache
switch
115
if (
_backendCache
is null)
130
_globalInvalidateTimestamp =
_backendCache
is null ? _zeroTimestamp : SafeReadTagInvalidationAsync(TagSet.WildcardTag);
133
internal IDistributedCache? BackendCache =>
_backendCache
;
209
return
_backendCache
is null ? default : new(
_backendCache
.RemoveAsync(key, token));
Internal\DefaultHybridCache.L2.cs (4)
33
Task<byte[]?> pendingLegacy =
_backendCache
!.GetAsync(key, token);
48
IBufferDistributedCache cache = Unsafe.As<IBufferDistributedCache>(
_backendCache
!); // type-checked already
97
return new(
_backendCache
!.SetAsync(key, arr, options, token));
99
IBufferDistributedCache cache = Unsafe.As<IBufferDistributedCache>(
_backendCache
!); // type-checked already