rename RedisMan in RedisIobCache + aggiunta metodo hastSetField
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user