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