4 writes to Flags
Microsoft.Extensions.Caching.Hybrid.Tests (4)
BufferReleaseTests.cs (1)
76
private static readonly HybridCacheEntryOptions _noUnderlying = new() {
Flags
= HybridCacheEntryFlags.DisableUnderlyingData };
L2Tests.cs (1)
24
private static readonly HybridCacheEntryOptions _expiryNoL1 = new() {
Flags
= HybridCacheEntryFlags.DisableLocalCache, Expiration = TimeSpan.FromMinutes(3.5) };
ServiceConstructionTests.cs (1)
41
options.DefaultEntryOptions = new() { Expiration = TimeSpan.FromSeconds(120),
Flags
= HybridCacheEntryFlags.DisableLocalCacheRead };
StampedeTests.cs (1)
24
Flags
= HybridCacheEntryFlags.DisableDistributedCache | HybridCacheEntryFlags.DisableLocalCache
3 references to Flags
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (2)
101
_defaultFlags = (defaultEntryOptions?.
Flags
?? HybridCacheEntryFlags.None) | _hardFlags;
169
=> (options?.
Flags
| _hardFlags) ?? _defaultFlags;
Microsoft.Extensions.Caching.Hybrid.Tests (1)
ServiceConstructionTests.cs (1)
50
Assert.Equal(HybridCacheEntryFlags.DisableLocalCacheRead, defaults.
Flags
);