mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +08:00
新加不带timeout跟password的构造方法,满足8/2需求。
建议生产环境都使用带poolConfig的构造方法,防止redis出现链接异常,可参考 bug https://github.com/xetorthio/jedis/issues/848
This commit is contained in:
parent
a1faf8d2a2
commit
091e47897d
@ -39,6 +39,11 @@ public class WxCpJedisConfigStorage implements WxCpConfigStorage {
|
||||
this.jedisPool = new JedisPool(host, port);
|
||||
}
|
||||
|
||||
|
||||
public WxCpJedisConfigStorage(JedisPoolConfig poolConfig, String host, int port) {
|
||||
this.jedisPool = new JedisPool(poolConfig, host, port);
|
||||
}
|
||||
|
||||
public WxCpJedisConfigStorage(JedisPoolConfig poolConfig, String host, int port, int timeout, final String password) {
|
||||
this.jedisPool = new JedisPool(poolConfig, host, port, timeout, password);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user