6 writes to CachedResponseValidFor
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
258context.CachedResponseValidFor = context.ResponseSharedMaxAge ??
Microsoft.AspNetCore.ResponseCaching.Tests (5)
ResponseCachingMiddlewareTests.cs (5)
702context.CachedResponseValidFor = TimeSpan.FromSeconds(10); 731context.CachedResponseValidFor = TimeSpan.FromSeconds(10); 764context.CachedResponseValidFor = TimeSpan.FromSeconds(10); 792context.CachedResponseValidFor = TimeSpan.FromSeconds(10); 863context.CachedResponseValidFor = TimeSpan.FromSeconds(10);
6 references to CachedResponseValidFor
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingMiddleware.cs (2)
331_cache.Set(context.BaseKey, context.CachedVaryByRules, context.CachedResponseValidFor); 354_cache.Set(context.StorageVaryKey ?? context.BaseKey, context.CachedResponse, context.CachedResponseValidFor);
Microsoft.AspNetCore.ResponseCaching.Tests (4)
ResponseCachingMiddlewareTests.cs (4)
440Assert.Equal(TimeSpan.FromSeconds(10), context.CachedResponseValidFor); 463Assert.Equal(TimeSpan.FromSeconds(11), context.CachedResponseValidFor); 488Assert.Equal(TimeSpan.FromSeconds(12), context.CachedResponseValidFor); 513Assert.Equal(TimeSpan.FromSeconds(13), context.CachedResponseValidFor);