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