use of io.lettuce.core.EmptyStatefulRedisConnection in project lettuce-core by lettuce-io.
the class GenericConnectionPoolBenchmark method setup.
@Setup
public void setup() {
GenericObjectPoolConfig config = new GenericObjectPoolConfig();
config.setMinIdle(0);
config.setMaxIdle(20);
config.setMaxTotal(20);
pool = ConnectionPoolSupport.createGenericObjectPool(() -> new EmptyStatefulRedisConnection(EmptyRedisChannelWriter.INSTANCE), config);
}
use of io.lettuce.core.EmptyStatefulRedisConnection in project lettuce-core by lettuce-io.
the class AsyncConnectionPoolBenchmark method setup.
@Setup
public void setup() {
BoundedPoolConfig config = BoundedPoolConfig.builder().minIdle(0).maxIdle(20).maxTotal(20).build();
pool = AsyncConnectionPoolSupport.createBoundedObjectPool(() -> CompletableFuture.completedFuture(new EmptyStatefulRedisConnection(EmptyRedisChannelWriter.INSTANCE)), config);
}
Aggregations