Configure keyspace notifications in LocalFaultTolerantRedisClusterFactory

This commit is contained in:
Chris Eager 2024-08-30 08:19:56 -05:00 committed by Chris Eager
parent 7df978390f
commit 5122271750
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ public class LocalFaultTolerantRedisClusterFactory implements FaultTolerantRedis
try {
redisClusterExtension.beforeAll(null);
redisClusterExtension.beforeEach(null);
redisClusterExtension.getRedisCluster().useCluster(connection ->
connection.sync().upstream().commands().configSet("notify-keyspace-events", "K$glz"));
} catch (final Exception e) {
throw new RuntimeException(e);
}