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