diff --git a/MP.IOC/Data/MpDataService.cs b/MP.IOC/Data/MpDataService.cs index c80bc1d0..a85ba30a 100644 --- a/MP.IOC/Data/MpDataService.cs +++ b/MP.IOC/Data/MpDataService.cs @@ -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? result = new Dictionary(); Stopwatch stopWatch = new Stopwatch(); stopWatch.Start();