20 references to SetAbsoluteExpiration
Microsoft.AspNetCore.Mvc.TagHelpers (1)
DistributedCacheTagHelper.cs (1)
90
options.
SetAbsoluteExpiration
(ExpiresAfter.Value);
Microsoft.Extensions.Caching.SqlServer.Tests (5)
SqlServerCacheWithDatabaseTest.cs (5)
319
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(relative: TimeSpan.FromSeconds(10)));
372
.
SetAbsoluteExpiration
(relative: absoluteExpirationRelativeToUtcNow));
581
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(absoluteExpirationRelativeToNow));
637
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(relative: TimeSpan.FromHours(1)));
657
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(relative: TimeSpan.FromHours(1)));
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (14)
TimeExpirationAsyncTests.cs (7)
62
await cache.SetAsync(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(1)));
83
await cache.SetAsync(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(0.25)));
98
await cache.SetAsync(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromMinutes(-1)));
114
await cache.SetAsync(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.Zero));
128
await cache.SetAsync(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(1)));
148
await cache.SetAsync(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(0.25)));
248
.
SetAbsoluteExpiration
(TimeSpan.FromSeconds(3)));
TimeExpirationTests.cs (7)
45
cache.Set(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(1)));
66
cache.Set(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(0.25)));
81
cache.Set(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromMinutes(-1)));
98
cache.Set(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.Zero));
112
cache.Set(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(1)));
132
cache.Set(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(TimeSpan.FromSeconds(0.25)));
233
.
SetAbsoluteExpiration
(TimeSpan.FromSeconds(3)));