Skip to content

Commit

Permalink
Configure keyspace notifications in LocalFaultTolerantRedisClusterFac…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
eager-signal committed Aug 30, 2024
1 parent 7df9783 commit 5122271
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ private LocalFaultTolerantRedisClusterFactory() {
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);
}
Expand Down

0 comments on commit 5122271

Please sign in to comment.