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