3 writes to Expiration
Microsoft.Extensions.Caching.Hybrid.Tests (3)
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 };
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)
150
if (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)
49
Assert.Equal(TimeSpan.FromSeconds(120), defaults.
Expiration
);