6 instantiations of HybridCacheEntryOptions
Microsoft.Extensions.Caching.Hybrid.Tests (6)
BufferReleaseTests.cs (1)
76
private static readonly HybridCacheEntryOptions _noUnderlying =
new
() { Flags = HybridCacheEntryFlags.DisableUnderlyingData };
L2Tests.cs (2)
22
private static readonly HybridCacheEntryOptions _expiry =
new
() { Expiration = TimeSpan.FromMinutes(3.5) };
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)
22
options.DefaultEntryOptions =
new
()
UnreliableL2Tests.cs (1)
109
private static HybridCacheEntryOptions NoL2Write { get; } = new
HybridCacheEntryOptions
{ Flags = HybridCacheEntryFlags.DisableDistributedCacheWrite };
20 references to HybridCacheEntryOptions
Microsoft.Extensions.Caching.Abstractions (3)
Hybrid\HybridCache.cs (3)
32
HybridCacheEntryOptions
? options = null, IEnumerable<string>? tags = null, CancellationToken cancellationToken = default);
45
HybridCacheEntryOptions
? options = null, IEnumerable<string>? tags = null, CancellationToken cancellationToken = default)
63
public abstract ValueTask SetAsync<T>(string key, T value,
HybridCacheEntryOptions
? options = null, IEnumerable<string>? tags = null, CancellationToken cancellationToken = default);
Microsoft.Extensions.Caching.Hybrid (12)
HybridCacheOptions.cs (1)
21
public
HybridCacheEntryOptions
? DefaultEntryOptions { get; set; }
Internal\DefaultHybridCache.cs (4)
99
var
defaultEntryOptions = _options.DefaultEntryOptions;
118
HybridCacheEntryOptions
? options = null, IEnumerable<string>? tags = null, CancellationToken cancellationToken = default)
193
public override ValueTask SetAsync<T>(string key, T value,
HybridCacheEntryOptions
? options = null, IEnumerable<string>? tags = null, CancellationToken token = default)
211
private HybridCacheEntryFlags GetEffectiveFlags(
HybridCacheEntryOptions
? options)
Internal\DefaultHybridCache.L2.cs (4)
75
internal ValueTask SetL2Async(string key, in BufferChunk buffer,
HybridCacheEntryOptions
? options, CancellationToken token)
97
internal void SetL1<T>(string key, CacheItem<T> value,
HybridCacheEntryOptions
? options)
157
private DistributedCacheEntryOptions GetOptions(
HybridCacheEntryOptions
? options)
173
static DistributedCacheEntryOptions ToDistributedCacheEntryOptions(
HybridCacheEntryOptions
options)
Internal\DefaultHybridCache.StampedeStateT.cs (3)
24
private
HybridCacheEntryOptions
? _options;
45
public void QueueUserWorkItem(in TState state, Func<TState, CancellationToken, ValueTask<T>> underlying,
HybridCacheEntryOptions
? options)
63
public Task ExecuteDirectAsync(in TState state, Func<TState, CancellationToken, ValueTask<T>> underlying,
HybridCacheEntryOptions
? options)
Microsoft.Extensions.Caching.Hybrid.Tests (5)
BufferReleaseTests.cs (1)
76
private static readonly
HybridCacheEntryOptions
_noUnderlying = new() { Flags = HybridCacheEntryFlags.DisableUnderlyingData };
L2Tests.cs (2)
22
private static readonly
HybridCacheEntryOptions
_expiry = new() { Expiration = TimeSpan.FromMinutes(3.5) };
24
private static readonly
HybridCacheEntryOptions
_expiryNoL1 = new() { Flags = HybridCacheEntryFlags.DisableLocalCache, Expiration = TimeSpan.FromMinutes(3.5) };
ServiceConstructionTests.cs (1)
47
var
defaults = options.DefaultEntryOptions;
UnreliableL2Tests.cs (1)
109
private static
HybridCacheEntryOptions
NoL2Write { get; } = new HybridCacheEntryOptions { Flags = HybridCacheEntryFlags.DisableDistributedCacheWrite };