fix funzionalità flush redis su DB specifico...
This commit is contained in:
@@ -364,7 +364,7 @@ namespace SteamWare
|
||||
if (!answ)
|
||||
{
|
||||
// registro che non ho trovaot il file: path e nome file!
|
||||
logger.lg.scriviLog(string.Format("Attenzione: non è stato possibile trovare il file!{0}wrkDir:{1}{0}file:{2}", Environment.NewLine, _workPath, _nomeFile), tipoLog.INFO);
|
||||
logger.lg.scriviLog(string.Format("Attenzione: non e' stato possibile trovare il file!{0}wrkDir:{1}{0}file:{2}", Environment.NewLine, _workPath, _nomeFile), tipoLog.INFO);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -382,7 +382,7 @@ namespace SteamWare
|
||||
if (!answ)
|
||||
{
|
||||
// registro che non ho trovaot il file: path e nome file!
|
||||
logger.lg.scriviLog(string.Format("Attenzione: non è stato possibile trovare il file!{0}path:{1}{0}file:{2}", Environment.NewLine, _path, _nomeFile), tipoLog.INFO);
|
||||
logger.lg.scriviLog(string.Format("Attenzione: non e' stato possibile trovare il file!{0}path:{1}{0}file:{2}", Environment.NewLine, _path, _nomeFile), tipoLog.INFO);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -1941,7 +1941,8 @@ namespace SteamWare
|
||||
foreach (var ep in connRedis.GetEndPoints())
|
||||
{
|
||||
var server = connRedis.GetServer(ep);
|
||||
foreach (var key in server.Keys(pattern: keyPattern))
|
||||
var keys = server.Keys(database: confReadInt("redisDb"), pattern: $"{keyPattern}*");
|
||||
foreach (var key in keys)
|
||||
{
|
||||
cache.KeyDelete(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user