11 references to SetAbsoluteExpiration
Microsoft.AspNetCore.Mvc.TagHelpers (1)
DistributedCacheTagHelper.cs (1)
84
options.
SetAbsoluteExpiration
(ExpiresOn.Value);
Microsoft.Extensions.Caching.SqlServer.Tests (8)
SqlServerCacheWithDatabaseTest.cs (8)
86
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(testClock.UtcNow.AddHours(-1)));
298
.
SetAbsoluteExpiration
(absoluteExpiration));
343
.
SetAbsoluteExpiration
(absolute: testClock.UtcNow.Add(TimeSpan.FromSeconds(30))));
400
.
SetAbsoluteExpiration
(absolute: expectedAbsoluteExpiration));
428
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(absoluteExpiration));
442
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(absoluteExpiration));
468
new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(absoluteExpiration));
528
.
SetAbsoluteExpiration
(absoluteExpiration));
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
TimeExpirationAsyncTests.cs (1)
48
await cache.SetAsync(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(expected));
TimeExpirationTests.cs (1)
31
cache.Set(key, value, new DistributedCacheEntryOptions().
SetAbsoluteExpiration
(expected));