Polishing.

Prepare pool for Jedis as well. Introduce generics for Add ticket references to tests.

See #3072
This commit is contained in:
Mark Paluch
2025-01-10 14:01:05 +01:00
parent 1d6788e3ba
commit cbe5ecf158
4 changed files with 36 additions and 6 deletions

View File

@@ -730,6 +730,12 @@ public class JedisConnectionFactory
if (getUsePool() && !isRedisClusterAware()) {
this.pool = createPool();
try {
this.pool.preparePool();
} catch (Exception ex) {
throw new PoolException("Could not prepare the pool", ex);
}
}
if (isRedisClusterAware()) {

View File

@@ -97,7 +97,6 @@ class LettucePoolingConnectionProvider implements LettuceConnectionProvider, Red
try {
newPool.preparePool();
} catch (Exception ex) {
throw new PoolException("Could not prepare the pool", ex);
}