fix funzionalità flush redis su DB specifico...

This commit is contained in:
Samuele E. Locatelli
2019-06-07 18:24:24 +02:00
parent dec58899f3
commit 1b9ed1a825
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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;
}
+2 -1
View File
@@ -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);
}