From 13f4cfcdfb71a0a5b113bf616986e69c12137669 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Mon, 24 Feb 2025 20:19:29 +0100 Subject: [PATCH] Update SQLiteCache.cs --- Caches/SQLiteCache/SQLiteCache.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Caches/SQLiteCache/SQLiteCache.cs b/Caches/SQLiteCache/SQLiteCache.cs index 750c16ec..19e6c888 100644 --- a/Caches/SQLiteCache/SQLiteCache.cs +++ b/Caches/SQLiteCache/SQLiteCache.cs @@ -18,7 +18,7 @@ namespace MapControl.Caching public sealed class SQLiteCache : IDistributedCache, IDisposable { private readonly SQLiteConnection connection; - private readonly Timer expirationScanTimer; + private readonly Timer timer; public SQLiteCache(string path) : this(path, TimeSpan.FromHours(1)) @@ -54,13 +54,13 @@ namespace MapControl.Caching if (expirationScanFrequency > TimeSpan.Zero) { - expirationScanTimer = new Timer(_ => DeleteExpiredItems(), null, TimeSpan.Zero, expirationScanFrequency); + timer = new Timer(_ => DeleteExpiredItems(), null, TimeSpan.Zero, expirationScanFrequency); } } public void Dispose() { - expirationScanTimer?.Dispose(); + timer?.Dispose(); connection.Dispose(); }