Configure keyspace notifications in LocalFaultTolerantRedisClusterFactory

This commit is contained in:
Chris Eager authored and Chris Eager committed 2024-08-30 13:00:31 -05:00
1 parent 7df978390f
commit 5122271750
1 file changed
+3
@@ -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);
}