Increased wait time for redis.
This commit is contained in:
parent
7bf440f786
commit
ecd8e3d7b0
@ -132,7 +132,8 @@ public class Utility
|
|||||||
public static JedisPool generatePool(ConnectionData connData)
|
public static JedisPool generatePool(ConnectionData connData)
|
||||||
{
|
{
|
||||||
JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();
|
JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();
|
||||||
jedisPoolConfig.setMaxWaitMillis(10);
|
jedisPoolConfig.setMaxWaitMillis(1000);
|
||||||
|
jedisPoolConfig.setMinIdle(5);
|
||||||
return new JedisPool(jedisPoolConfig, connData.getHost(), connData.getPort());
|
return new JedisPool(jedisPoolConfig, connData.getHost(), connData.getPort());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user