semplificazione getHashField

This commit is contained in:
Samuele E. Locatelli (W11-AI)
2026-04-18 10:17:54 +02:00
parent 09d6b85bd4
commit dcb2ddd341
+2 -13
View File
@@ -3531,18 +3531,7 @@ namespace MP.IOC.Data
public string RedisGetHashField(RedisKey key, string hashField)
{
string result = "";
try
{
RedisValue hashField2 = hashField;
result = redisDb.HashGet(key, hashField2).ToString();
}
catch (Exception exc)
{
Log.Error($"Errore in RedisGetHashField{Environment.NewLine}{exc}");
}
return result;
return redisDb.HashGet(key, hashField).ToString();
}
public bool RedisHashPresent(RedisKey key)
@@ -4947,7 +4936,7 @@ namespace MP.IOC.Data
{
var currHash = Utils.RedKeyDatiMacc(idxMacc, MpIoNS);
// inizio con un bel reset...
RedisFlushPattern($"{currHash}");
await RedisFlushPatternAsync(currHash);
Dictionary<string, string>? result = new Dictionary<string, string>();
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();