update
This commit is contained in:
parent
bdb7d08622
commit
a8b6b34406
@ -190,7 +190,7 @@ public class RedisTools {
|
|||||||
JedisPoolConfig poolConfig = new JedisPoolConfig();
|
JedisPoolConfig poolConfig = new JedisPoolConfig();
|
||||||
poolConfig.setMaxIdle(0);
|
poolConfig.setMaxIdle(0);
|
||||||
poolConfig.setMaxWaitMillis(1000);
|
poolConfig.setMaxWaitMillis(1000);
|
||||||
JedisPool pool = new JedisPool(poolConfig, host);
|
JedisPool pool = new JedisPool();
|
||||||
return pool.getResource();
|
return pool.getResource();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user