|
|
@ -41,7 +41,7 @@ public final class RedisUtil {
|
|
|
|
JedisPoolConfig config = new JedisPoolConfig();
|
|
|
|
JedisPoolConfig config = new JedisPoolConfig();
|
|
|
|
config.setMaxTotal(MAX_ACTIVE);
|
|
|
|
config.setMaxTotal(MAX_ACTIVE);
|
|
|
|
config.setMaxIdle(MAX_IDLE);
|
|
|
|
config.setMaxIdle(MAX_IDLE);
|
|
|
|
config.setMaxWaitMillis(MAX_WAIT);
|
|
|
|
//config.setMaxWaitMillis(MAX_WAIT);
|
|
|
|
config.setTestOnBorrow(TEST_ON_BORROW);
|
|
|
|
config.setTestOnBorrow(TEST_ON_BORROW);
|
|
|
|
jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, null);
|
|
|
|
jedisPool = new JedisPool(config, ADDR, PORT, TIMEOUT, null);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|