19 references to CacheFeatures
Microsoft.Extensions.Caching.Hybrid (19)
Internal\DefaultHybridCache.cs (9)
37private readonly CacheFeatures _features; // used to avoid constant type-testing 55internal CacheFeatures GetFeatures() => _features; 58internal void DebugRemoveFeatures(CacheFeatures features) => Unsafe.AsRef(in _features) &= ~features; 61private CacheFeatures GetFeatures(CacheFeatures mask) => _features & mask; 84IBufferDistributedCache => CacheFeatures.BackendCache | CacheFeatures.BackendBuffers, 85not null => CacheFeatures.BackendCache, 86_ => CacheFeatures.None
Internal\DefaultHybridCache.L2.cs (10)
23switch (GetFeatures(CacheFeatures.BackendCache | CacheFeatures.BackendBuffers)) 25case CacheFeatures.BackendCache: // legacy byte[]-based 40case CacheFeatures.BackendCache | CacheFeatures.BackendBuffers: // IBufferWriter<byte>-based 78switch (GetFeatures(CacheFeatures.BackendCache | CacheFeatures.BackendBuffers)) 80case CacheFeatures.BackendCache: // legacy byte[]-based 89case CacheFeatures.BackendCache | CacheFeatures.BackendBuffers: // ReadOnlySequence<byte>-based