rename RedisMan in RedisIobCache + aggiunta metodo hastSetField

This commit is contained in:
Samuele Locatelli
2026-05-20 15:26:31 +02:00
parent ed019cafa7
commit 952868e69c
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -217,7 +217,7 @@
<Compile Include="Logging.cs" />
<Compile Include="Objects.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RedisMan.cs" />
<Compile Include="RedisIobCache.cs" />
<Compile Include="utils.cs" />
</ItemGroup>
<ItemGroup>
@@ -1171,6 +1171,28 @@ namespace IOB_UT_NEXT
return answ;
}
/// <summary>
/// Salva un SINGOLO valore nella hash dati key e field
/// </summary>
/// <param name="hashKey"></param>
/// <param name="hashField"></param>
/// <param name="value"></param>
/// <returns></returns>
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;
}
/// <summary>
/// Conteggio elementi in QUEUE (LIFO)
/// </summary>