semplificazione getHashField
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user