Update SQLiteCache.cs

This commit is contained in:
ClemensFischer 2025-02-24 13:57:05 +01:00
parent 8baec28afd
commit 5d649adbfa

View file

@ -233,7 +233,7 @@ namespace MapControl.Caching
var command = new SQLiteCommand("insert or replace into items (key, expiration, buffer) values (@key, @exp, @buf)", connection); var command = new SQLiteCommand("insert or replace into items (key, expiration, buffer) values (@key, @exp, @buf)", connection);
command.Parameters.AddWithValue("@key", key); command.Parameters.AddWithValue("@key", key);
command.Parameters.AddWithValue("@exp", expiration.Ticks); command.Parameters.AddWithValue("@exp", expiration.UtcTicks);
command.Parameters.AddWithValue("@buf", buffer); command.Parameters.AddWithValue("@buf", buffer);
return command; return command;
} }