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