3 writes to Expiration
Microsoft.Extensions.Caching.Hybrid.Tests (3)
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 };
7 references to Expiration
Microsoft.Extensions.Caching.Abstractions (2)
Hybrid\HybridCacheEntryOptions.cs (2)
36=> Expiration is null ? null : (_dc ??= new() { AbsoluteExpirationRelativeToNow = Expiration });
Microsoft.Extensions.Caching.Hybrid (4)
Internal\DefaultHybridCache.cs (1)
102_defaultExpiration = defaultEntryOptions?.Expiration ?? TimeSpan.FromMinutes(5);
Internal\DefaultHybridCache.L2.cs (3)
150if (options is not null && options.Expiration.HasValue && options.Expiration.GetValueOrDefault() != _defaultExpiration) 164=> new() { AbsoluteExpirationRelativeToNow = options.Expiration };
Microsoft.Extensions.Caching.Hybrid.Tests (1)
ServiceConstructionTests.cs (1)
49Assert.Equal(TimeSpan.FromSeconds(120), defaults.Expiration);