24 references to SetSlidingExpiration
Microsoft.AspNetCore.Mvc.TagHelpers (2)
DistributedCacheTagHelper.cs (2)
96options.SetSlidingExpiration(ExpiresSliding.Value); 101options.SetSlidingExpiration(DefaultExpiration);
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
282new DistributedCacheEntryOptions().SetSlidingExpiration(_idleTimeout),
Microsoft.Extensions.Caching.SqlServer.Tests (9)
SqlServerCacheWithDatabaseTest.cs (9)
105new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromMinutes(30))); 214new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromMinutes(30))); 236new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(slidingExpirationWindow))); 264new DistributedCacheEntryOptions().SetSlidingExpiration(slidingExpirationWindow)); 297.SetSlidingExpiration(slidingExpiration) 495new DistributedCacheEntryOptions().SetSlidingExpiration(slidingExpiration)); 527.SetSlidingExpiration(slidingExpiration) 612new DistributedCacheEntryOptions().SetSlidingExpiration(slidingExpiration)); 677new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(10)));
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (12)
TimeExpirationAsyncTests.cs (6)
163await cache.SetAsync(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromMinutes(-1))); 176await cache.SetAsync(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.Zero)); 190await cache.SetAsync(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(1))); 208await cache.SetAsync(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(0.25))); 221await cache.SetAsync(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(1))); 247.SetSlidingExpiration(TimeSpan.FromSeconds(1))
TimeExpirationTests.cs (6)
147cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromMinutes(-1))); 161cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.Zero)); 175cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(1))); 193cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(0.25))); 206cache.Set(key, value, new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(1))); 232.SetSlidingExpiration(TimeSpan.FromSeconds(1))