From 63c088e220e81a6df55739efce2067e4176ce5d8 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Mon, 5 Feb 2024 13:34:13 +0100 Subject: [PATCH] Update ImageFileCache.cs --- MapControl/Shared/ImageFileCache.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MapControl/Shared/ImageFileCache.cs b/MapControl/Shared/ImageFileCache.cs index 9d37dc78..6741af8b 100644 --- a/MapControl/Shared/ImageFileCache.cs +++ b/MapControl/Shared/ImageFileCache.cs @@ -65,12 +65,12 @@ namespace MapControl.Caching { if (expiration.Value > DateTimeOffset.UtcNow) { - var cacheOptions = new DistributedCacheEntryOptions + var options = new DistributedCacheEntryOptions { AbsoluteExpiration = expiration }; - memoryCache.Set(key, buffer, cacheOptions); + memoryCache.Set(key, buffer, options); } else { @@ -109,12 +109,12 @@ namespace MapControl.Caching { if (expiration.Value > DateTimeOffset.UtcNow) { - var cacheOptions = new DistributedCacheEntryOptions + var options = new DistributedCacheEntryOptions { AbsoluteExpiration = expiration }; - await memoryCache.SetAsync(key, buffer, cacheOptions, token).ConfigureAwait(false); + await memoryCache.SetAsync(key, buffer, options, token).ConfigureAwait(false); } else {