2 writes to _backendCache
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (2)
70_backendCache = services.GetService<IDistributedCache>(); // note optional 78_backendCache = null;
11 references to _backendCache
Microsoft.Extensions.Caching.Hybrid (11)
Internal\DefaultHybridCache.cs (7)
74if (_backendCache is not null 75&& _backendCache.GetType() == typeof(MemoryDistributedCache) 82_features |= _backendCache switch 101if (_backendCache is null) 112internal IDistributedCache? BackendCache => _backendCache; 187return _backendCache is null ? default : new(_backendCache.RemoveAsync(key, token));
Internal\DefaultHybridCache.L2.cs (4)
27var pendingLegacy = _backendCache!.GetAsync(key, token); 42var cache = Unsafe.As<IBufferDistributedCache>(_backendCache!); // type-checked already 88return new(_backendCache!.SetAsync(key, arr, GetOptions(options), token)); 90var cache = Unsafe.As<IBufferDistributedCache>(_backendCache!); // type-checked already