Update sliding window cache timers
This commit is contained in:
parent
6c7a007f96
commit
c5bb3843aa
|
|
@ -31,7 +31,7 @@ namespace AS1024.GeoFeed.Controllers
|
|||
{
|
||||
feed = await builder.GetGeoFeedData();
|
||||
var cacheEntryOptions = new MemoryCacheEntryOptions()
|
||||
.SetAbsoluteExpiration(TimeSpan.FromHours(1));
|
||||
.SetSlidingExpiration(TimeSpan.FromMinutes(15));
|
||||
memoryCache.Set(GeoFeedCacheKey, feed, cacheEntryOptions);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue