config redis

This commit is contained in:
jay1991115@126.com 2018-12-05 16:25:02 +08:00
parent a1c90d0446
commit ea9fe43937

View File

@ -20,7 +20,7 @@ public class RedisPoolFactory {
poolConfig.setMaxTotal(redisConfig.getPoolMaxTotal());
poolConfig.setMaxWaitMillis(redisConfig.getPoolMaxWait() * 1000);
JedisPool jp = new JedisPool(poolConfig, redisConfig.getHost(), redisConfig.getPort(),
redisConfig.getTimeout()*1000, redisConfig.getPassword(), 0);
redisConfig.getTimeout()*1000, redisConfig.getPassword(), 8);
return jp;
}