8 writes to AbsoluteExpirationRelativeToNow
Microsoft.Extensions.Caching.Abstractions (2)
DistributedCacheEntryExtensions.cs (1)
22options.AbsoluteExpirationRelativeToNow = relative;
Hybrid\HybridCacheEntryOptions.cs (1)
36=> Expiration is null ? null : (_dc ??= new() { AbsoluteExpirationRelativeToNow = Expiration });
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (1)
104_defaultDistributedCacheExpiration = new DistributedCacheEntryOptions { AbsoluteExpirationRelativeToNow = _defaultExpiration };
Internal\DefaultHybridCache.L2.cs (1)
164=> new() { AbsoluteExpirationRelativeToNow = options.Expiration };
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
394= new() { AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(5) };
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
105var options = new DistributedCacheEntryOptions { AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(30) };
Microsoft.Extensions.Caching.SqlServer.Tests (2)
SqlServerCacheWithDatabaseTest.cs (2)
135AbsoluteExpirationRelativeToNow = null, 176AbsoluteExpirationRelativeToNow = null,
12 references to AbsoluteExpirationRelativeToNow
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
DistributedCacheTagHelperTest.cs (1)
316Assert.Equal(expiresAfter, cacheEntryOptions.AbsoluteExpirationRelativeToNow);
Microsoft.Extensions.Caching.Abstractions (1)
DistributedCacheEntryOptions.cs (1)
46nameof(AbsoluteExpirationRelativeToNow),
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
80memoryCacheEntryOptions.AbsoluteExpirationRelativeToNow = options.AbsoluteExpirationRelativeToNow;
Microsoft.Extensions.Caching.SqlServer (3)
DatabaseOperations.cs (2)
375if (options.AbsoluteExpirationRelativeToNow.HasValue) 377absoluteExpiration = utcNow.Add(options.AbsoluteExpirationRelativeToNow.Value);
SqlServerCache.cs (1)
286&& !options.AbsoluteExpirationRelativeToNow.HasValue
Microsoft.Extensions.Caching.StackExchangeRedis (2)
RedisCache.cs (2)
600if (options.AbsoluteExpirationRelativeToNow.HasValue) 602return creationTime + options.AbsoluteExpirationRelativeToNow;
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (4)
TimeExpirationAsyncTests.cs (2)
100nameof(DistributedCacheEntryOptions.AbsoluteExpirationRelativeToNow), 116nameof(DistributedCacheEntryOptions.AbsoluteExpirationRelativeToNow),
TimeExpirationTests.cs (2)
83nameof(DistributedCacheEntryOptions.AbsoluteExpirationRelativeToNow), 100nameof(DistributedCacheEntryOptions.AbsoluteExpirationRelativeToNow),