Update sliding window cache timers

This commit is contained in:
Jeff Leung 2024-01-04 23:19:01 -08:00
parent 6c7a007f96
commit c5bb3843aa
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}