From 952868e69c019f69055cacfd987a6c42d3868de9 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 20 May 2026 15:26:31 +0200 Subject: [PATCH] rename RedisMan in RedisIobCache + aggiunta metodo hastSetField --- IOB-UT-NEXT/IOB-UT-NEXT.csproj | 2 +- IOB-UT-NEXT/{RedisMan.cs => RedisIobCache.cs} | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) rename IOB-UT-NEXT/{RedisMan.cs => RedisIobCache.cs} (98%) diff --git a/IOB-UT-NEXT/IOB-UT-NEXT.csproj b/IOB-UT-NEXT/IOB-UT-NEXT.csproj index a0dc1387..be331be1 100644 --- a/IOB-UT-NEXT/IOB-UT-NEXT.csproj +++ b/IOB-UT-NEXT/IOB-UT-NEXT.csproj @@ -217,7 +217,7 @@ - + diff --git a/IOB-UT-NEXT/RedisMan.cs b/IOB-UT-NEXT/RedisIobCache.cs similarity index 98% rename from IOB-UT-NEXT/RedisMan.cs rename to IOB-UT-NEXT/RedisIobCache.cs index 714100a4..d4fb3ca7 100644 --- a/IOB-UT-NEXT/RedisMan.cs +++ b/IOB-UT-NEXT/RedisIobCache.cs @@ -1171,6 +1171,28 @@ namespace IOB_UT_NEXT return answ; } + /// + /// Salva un SINGOLO valore nella hash dati key e field + /// + /// + /// + /// + /// + public bool redSetHashField(string hashKey, string hashField, string value) + { + bool answ = false; + // cerco se ci sia valore in redis... + try + { + answ = currDb.HashSet((RedisKey)hashKey, (RedisValue)hashField, (RedisValue)value); + } + catch (Exception exc) + { + Logging.Instance.Error($"redSetHashField {exc}"); + } + return answ; + } + /// /// Conteggio elementi in QUEUE (LIFO) ///