From 6c7a007f965ffd2dffc5f7a7e563a80dd284b5dc Mon Sep 17 00:00:00 2001 From: Jeff Leung Date: Thu, 4 Jan 2024 23:18:50 -0800 Subject: [PATCH] Rename file --- .../GeoFeedBuilder/{GeoFeedBuilder.cs => PreloadGeoFeed.cs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename AS1024.GeoFeed/GeoFeedBuilder/{GeoFeedBuilder.cs => PreloadGeoFeed.cs} (95%) diff --git a/AS1024.GeoFeed/GeoFeedBuilder/GeoFeedBuilder.cs b/AS1024.GeoFeed/GeoFeedBuilder/PreloadGeoFeed.cs similarity index 95% rename from AS1024.GeoFeed/GeoFeedBuilder/GeoFeedBuilder.cs rename to AS1024.GeoFeed/GeoFeedBuilder/PreloadGeoFeed.cs index 53f0fc5..520cc46 100644 --- a/AS1024.GeoFeed/GeoFeedBuilder/GeoFeedBuilder.cs +++ b/AS1024.GeoFeed/GeoFeedBuilder/PreloadGeoFeed.cs @@ -24,7 +24,7 @@ namespace AS1024.GeoFeed.GeoFeedBuilder { logger.LogInformation("Preloading GeoFeed data in memory..."); var feed = await provider.GetGeoFeedData(); - var cacheEntryOptions = new MemoryCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromHours(1)); + var cacheEntryOptions = new MemoryCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(45)); memoryCache.Set(GeoFeedCacheKey, feed, cacheEntryOptions); }