3 instantiations of HybridCacheEntryOptions
Microsoft.Extensions.Caching.Hybrid.Tests (3)
BufferReleaseTests.cs (1)
75private static readonly HybridCacheEntryOptions _noUnderlying = new() { Flags = HybridCacheEntryFlags.DisableUnderlyingData };
ServiceConstructionTests.cs (1)
37options.DefaultEntryOptions = new() { Expiration = TimeSpan.FromSeconds(120), Flags = HybridCacheEntryFlags.DisableLocalCacheRead };
StampedeTests.cs (1)
28options.DefaultEntryOptions = new()
17 references to HybridCacheEntryOptions
Microsoft.Extensions.Caching.Hybrid (14)
HybridCacheOptions.cs (1)
19public HybridCacheEntryOptions? DefaultEntryOptions { get; set; }
Internal\DefaultHybridCache.cs (4)
90var defaultEntryOptions = _options.DefaultEntryOptions; 108private HybridCacheEntryFlags GetEffectiveFlags(HybridCacheEntryOptions? options) 111public override ValueTask<T> GetOrCreateAsync<TState, T>(string key, TState state, Func<TState, CancellationToken, ValueTask<T>> underlyingDataCallback, HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default) 156public override ValueTask SetAsync<T>(string key, T value, HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default)
Internal\DefaultHybridCache.L2.cs (3)
84internal ValueTask SetL2Async(string key, in BufferChunk buffer, HybridCacheEntryOptions? options, CancellationToken token) 104private DistributedCacheEntryOptions GetOptions(HybridCacheEntryOptions? options) 114internal void SetL1<T>(string key, CacheItem<T> value, HybridCacheEntryOptions? options)
Internal\DefaultHybridCache.StampedeStateT.cs (3)
19private HybridCacheEntryOptions? _options; 33public void QueueUserWorkItem(in TState state, Func<TState, CancellationToken, ValueTask<T>> underlying, HybridCacheEntryOptions? options) 50public Task ExecuteDirectAsync(in TState state, Func<TState, CancellationToken, ValueTask<T>> underlying, HybridCacheEntryOptions? options)
Runtime\HybridCache.cs (3)
33HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default); 47HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default) 65public abstract ValueTask SetAsync<T>(string key, T value, HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default);
Microsoft.Extensions.Caching.Hybrid.Tests (3)
BufferReleaseTests.cs (1)
75private static readonly HybridCacheEntryOptions _noUnderlying = new() { Flags = HybridCacheEntryFlags.DisableUnderlyingData };
ServiceConstructionTests.cs (2)
43var defaults = options.DefaultEntryOptions; 72var defaults = options.DefaultEntryOptions;