19 references to CacheFeatures
Microsoft.Extensions.Caching.Hybrid (19)
Internal\DefaultHybridCache.cs (9)
34private readonly CacheFeatures _features; // used to avoid constant type-testing 51internal CacheFeatures GetFeatures() => _features; 54internal void DebugRemoveFeatures(CacheFeatures features) => Unsafe.AsRef(in _features) &= ~features; 57private CacheFeatures GetFeatures(CacheFeatures mask) => _features & mask; 80IBufferDistributedCache => CacheFeatures.BackendCache | CacheFeatures.BackendBuffers, 81not null => CacheFeatures.BackendCache, 82_ => CacheFeatures.None
Internal\DefaultHybridCache.L2.cs (10)
21switch (GetFeatures(CacheFeatures.BackendCache | CacheFeatures.BackendBuffers)) 23case CacheFeatures.BackendCache: // legacy byte[]-based 36case CacheFeatures.BackendCache | CacheFeatures.BackendBuffers: // IBufferWriter<byte>-based 73switch (GetFeatures(CacheFeatures.BackendCache | CacheFeatures.BackendBuffers)) 75case CacheFeatures.BackendCache: // legacy byte[]-based 84case CacheFeatures.BackendCache | CacheFeatures.BackendBuffers: // ReadOnlySequence<byte>-based