2 writes to _backendCache
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (2)
77_backendCache = services.GetService<IDistributedCache>(); // note optional 85_backendCache = null;
12 references to _backendCache
Microsoft.Extensions.Caching.Hybrid (12)
Internal\DefaultHybridCache.cs (8)
81if (_backendCache is not null 82&& _backendCache.GetType() == typeof(MemoryDistributedCache) 89_features |= _backendCache switch 108if (_backendCache is null) 123_globalInvalidateTimestamp = _backendCache is null ? _zeroTimestamp : SafeReadTagInvalidationAsync(TagSet.WildcardTag); 126internal IDistributedCache? BackendCache => _backendCache; 202return _backendCache is null ? default : new(_backendCache.RemoveAsync(key, token));
Internal\DefaultHybridCache.L2.cs (4)
33var pendingLegacy = _backendCache!.GetAsync(key, token); 48var cache = Unsafe.As<IBufferDistributedCache>(_backendCache!); // type-checked already 97return new(_backendCache!.SetAsync(key, arr, options, token)); 99var cache = Unsafe.As<IBufferDistributedCache>(_backendCache!); // type-checked already