|
|
|
@ -127,7 +127,7 @@ public class RedissonConnection extends AbstractRedisConnection {
|
|
|
|
|
public void openPipeline() {
|
|
|
|
|
BatchOptions options = BatchOptions.defaults()
|
|
|
|
|
.executionMode(ExecutionMode.IN_MEMORY);
|
|
|
|
|
this.executorService = new CommandBatchService(executorService, options);
|
|
|
|
|
this.executorService = executorService.createCommandBatchService(options);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -1453,13 +1453,13 @@ public class RedissonConnection extends AbstractRedisConnection {
|
|
|
|
|
if (isPipelined()) {
|
|
|
|
|
BatchOptions options = BatchOptions.defaults()
|
|
|
|
|
.executionMode(ExecutionMode.IN_MEMORY_ATOMIC);
|
|
|
|
|
this.executorService = new CommandBatchService(executorService, options);
|
|
|
|
|
this.executorService = executorService.createCommandBatchService(options);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BatchOptions options = BatchOptions.defaults()
|
|
|
|
|
.executionMode(ExecutionMode.REDIS_WRITE_ATOMIC);
|
|
|
|
|
this.executorService = new CommandBatchService(executorService, options);
|
|
|
|
|
this.executorService = executorService.createCommandBatchService(options);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|