Configure keyspace notifications in LocalFaultTolerantRedisClusterFactory
This commit is contained in:
parent
7df978390f
commit
5122271750
|
@ -22,6 +22,9 @@ public class LocalFaultTolerantRedisClusterFactory implements FaultTolerantRedis
|
||||||
try {
|
try {
|
||||||
redisClusterExtension.beforeAll(null);
|
redisClusterExtension.beforeAll(null);
|
||||||
redisClusterExtension.beforeEach(null);
|
redisClusterExtension.beforeEach(null);
|
||||||
|
|
||||||
|
redisClusterExtension.getRedisCluster().useCluster(connection ->
|
||||||
|
connection.sync().upstream().commands().configSet("notify-keyspace-events", "K$glz"));
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue