11 references to Expire
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheAttribute.cs (1)
114
builder.
Expire
(TimeSpan.FromSeconds(_duration.Value));
Microsoft.AspNetCore.OutputCaching.Tests (8)
OutputCacheAttributeTests.cs (1)
49
options.AddPolicy("MyPolicy", b => b.
Expire
(TimeSpan.FromSeconds(42)));
OutputCachePolicyBuilderTests.cs (7)
36
var policy = builder.
Expire
(TimeSpan.FromSeconds(duration)).Build();
61
options.AddPolicy(name, b => b.
Expire
(TimeSpan.FromSeconds(duration)));
79
options.AddPolicy(name, b => b.
Expire
(TimeSpan.FromSeconds(duration)), true);
333
options.AddBasePolicy(build => build.
Expire
(TimeSpan.FromSeconds(1)));
334
options.AddBasePolicy(build => build.With(c => source == 1).
Expire
(TimeSpan.FromSeconds(2)));
335
options.AddBasePolicy(build => build.With(c => source == 2).
Expire
(TimeSpan.FromSeconds(3)));
353
options.AddBasePolicy(build => build.With(c => false).
Expire
(TimeSpan.FromSeconds(2)));
OutputCachingSample (2)
Startup.cs (2)
12
options.AddBasePolicy(builder => builder.With(c => c.HttpContext.Request.Path.StartsWithSegments("/js")).
Expire
(TimeSpan.FromDays(1)));
55
}).CacheOutput(p => p.SetLocking(false).
Expire
(TimeSpan.FromMilliseconds(1)));