5 writes to SlidingExpiration
Microsoft.Extensions.Caching.Abstractions (1)
DistributedCacheEntryExtensions.cs (1)
49options.SlidingExpiration = offset;
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
106options.SlidingExpiration = Sliding ? TimeSpan.FromMinutes(5) : null;
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
291SlidingExpiration = _defaultSlidingExpiration
Microsoft.Extensions.Caching.SqlServer.Tests (2)
SqlServerCacheWithDatabaseTest.cs (2)
136SlidingExpiration = null 177SlidingExpiration = null
19 references to SlidingExpiration
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
DistributedCacheTagHelperTest.cs (2)
290Assert.Equal(slidingExpiresIn, cacheEntryOptions.SlidingExpiration); 342Assert.Equal(expiresSliding, cacheEntryOptions.SlidingExpiration);
Microsoft.Extensions.Caching.Abstractions (1)
DistributedCacheEntryOptions.cs (1)
70nameof(SlidingExpiration),
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
81memoryCacheEntryOptions.SlidingExpiration = options.SlidingExpiration;
Microsoft.Extensions.Caching.SqlServer (5)
DatabaseOperations.cs (4)
136DatabaseOperations.ValidateOptions(options.SlidingExpiration, absoluteExpiration); 144.AddSlidingExpirationInSeconds(options.SlidingExpiration) 176DatabaseOperations.ValidateOptions(options.SlidingExpiration, absoluteExpiration); 184.AddSlidingExpirationInSeconds(options.SlidingExpiration)
SqlServerCache.cs (1)
287&& !options.SlidingExpiration.HasValue)
Microsoft.Extensions.Caching.StackExchangeRedis (6)
RedisCache.cs (6)
174var fields = GetHashFields(Linearize(value, out var lease), absoluteExpiration, options.SlidingExpiration); 225var fields = GetHashFields(Linearize(value, out var lease), absoluteExpiration, options.SlidingExpiration); 571if (absoluteExpiration.HasValue && options.SlidingExpiration.HasValue) 575options.SlidingExpiration.Value.TotalSeconds); 581else if (options.SlidingExpiration.HasValue) 583return (long)options.SlidingExpiration.Value.TotalSeconds;
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (4)
TimeExpirationAsyncTests.cs (2)
164}, nameof(DistributedCacheEntryOptions.SlidingExpiration), "The sliding expiration value must be positive.", TimeSpan.FromMinutes(-1)); 178nameof(DistributedCacheEntryOptions.SlidingExpiration),
TimeExpirationTests.cs (2)
148}, nameof(DistributedCacheEntryOptions.SlidingExpiration), "The sliding expiration value must be positive.", TimeSpan.FromMinutes(-1)); 163nameof(DistributedCacheEntryOptions.SlidingExpiration),