Nope Redis still borked.

This commit is contained in:
dingo
2026-01-30 12:47:59 -05:00
parent 370c787dd5
commit 5a3c32ff11
2 changed files with 26 additions and 18 deletions
+18 -18
View File
@@ -180,28 +180,28 @@ public sealed class RedisManager : IRedisManager
if (!string.IsNullOrWhiteSpace(password)) cs += $",password={password}";
return cs;
}
public async Task FlushDatabaseAsync()
{
// Redis flush commands are server-level, not IDatabase-level
var endpoints = _mux.GetEndPoints();
//public async Task FlushDatabaseAsync()
//{
// // Redis flush commands are server-level, not IDatabase-level
// var endpoints = _mux.GetEndPoints();
foreach (var endpoint in endpoints)
{
var server = _mux.GetServer(endpoint);
// foreach (var endpoint in endpoints)
// {
// var server = _mux.GetServer(endpoint);
if (!server.IsConnected)
continue;
// if (!server.IsConnected)
// continue;
if (server.IsReplica)
{
_logger.LogDebug("Skipping replica endpoint {Endpoint}", endpoint);
continue;
}
// if (server.IsReplica)
// {
// _logger.LogDebug("Skipping replica endpoint {Endpoint}", endpoint);
// continue;
// }
_logger.LogWarning("FLUSHDB issued on Redis endpoint {Endpoint}", endpoint);
await server.FlushDatabaseAsync(Db.Database);
}
}
// _logger.LogWarning("FLUSHDB issued on Redis endpoint {Endpoint}", endpoint);
// await server.FlushDatabaseAsync(Db.Database);
// }
//}
}