Skip to content

Commit

Permalink
enable autoflush in redis cluster client
Browse files Browse the repository at this point in the history
Signed-off-by: pyalex <moskalenko.alexey@gmail.com>
  • Loading branch information
pyalex committed Dec 17, 2021
1 parent 23b67dd commit b3edfcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ public void flushCommands() {

private RedisClient(StatefulRedisConnection<byte[], byte[]> connection) {
this.asyncCommands = connection.async();

// Disable auto-flushing
// this.asyncCommands.setAutoFlushCommands(false);
}

public static RedisClientAdapter create(RedisStoreConfig config) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ private RedisClusterClient(Builder builder) {

// allows reading from replicas
this.asyncCommands.readOnly();

// Disable auto-flushing
this.asyncCommands.setAutoFlushCommands(false);
}

public static RedisClientAdapter create(RedisClusterStoreConfig config) {
Expand Down

0 comments on commit b3edfcf

Please sign in to comment.