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