Nuova forma x var keepAlive in REDIS

This commit is contained in:
Samuele E. Locatelli
2018-10-23 08:54:31 +02:00
parent b2b95442fc
commit d5c0ea20c1
+1 -1
View File
@@ -1259,7 +1259,7 @@ namespace MapoDb
{
// salvo in variabile boolean se registrare keep alive su db o meno
bool doWrite = false;
string nomeVar = string.Format("KA{0}", IdxMacchina);
string nomeVar = string.Format("KeepAlive:{0}", IdxMacchina);
// in primis controllo se in cache c'è oggetto keep alive x macchina... formato KA{ID-MACCHINA}
DateTime adesso = DateTime.Now;
if (memLayer.ML.isInCacheObject(nomeVar))