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