5 instantiations of HybridCacheEntryOptions
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)
41
options.DefaultEntryOptions =
new
() { Expiration = TimeSpan.FromSeconds(120), Flags = HybridCacheEntryFlags.DisableLocalCacheRead };
StampedeTests.cs (1)
22
options.DefaultEntryOptions =
new
()
19 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)
19
public
HybridCacheEntryOptions
? DefaultEntryOptions { get; set; }
Internal\DefaultHybridCache.cs (4)
94
var
defaultEntryOptions = _options.DefaultEntryOptions;
113
HybridCacheEntryOptions
? options = null, IEnumerable<string>? tags = null, CancellationToken cancellationToken = default)
158
public override ValueTask SetAsync<T>(string key, T value,
HybridCacheEntryOptions
? options = null, IEnumerable<string>? tags = null, CancellationToken token = default)
168
private HybridCacheEntryFlags GetEffectiveFlags(
HybridCacheEntryOptions
? options)
Internal\DefaultHybridCache.L2.cs (4)
70
internal ValueTask SetL2Async(string key, in BufferChunk buffer,
HybridCacheEntryOptions
? options, CancellationToken token)
92
internal void SetL1<T>(string key, CacheItem<T> value,
HybridCacheEntryOptions
? options)
147
private DistributedCacheEntryOptions GetOptions(
HybridCacheEntryOptions
? options)
163
static DistributedCacheEntryOptions ToDistributedCacheEntryOptions(
HybridCacheEntryOptions
options)
Internal\DefaultHybridCache.StampedeStateT.cs (3)
22
private
HybridCacheEntryOptions
? _options;
43
public void QueueUserWorkItem(in TState state, Func<TState, CancellationToken, ValueTask<T>> underlying,
HybridCacheEntryOptions
? options)
61
public Task ExecuteDirectAsync(in TState state, Func<TState, CancellationToken, ValueTask<T>> underlying,
HybridCacheEntryOptions
? options)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
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;