Skip to content

Commit 091e478

Browse files
committed
新加不带timeout跟password的构造方法,满足8/2需求。
建议生产环境都使用带poolConfig的构造方法,防止redis出现链接异常,可参考 bug redis/jedis#848
1 parent a1faf8d commit 091e478

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpJedisConfigStorage.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public WxCpJedisConfigStorage(String host, int port) {
3939
this.jedisPool = new JedisPool(host, port);
4040
}
4141

42+
43+
public WxCpJedisConfigStorage(JedisPoolConfig poolConfig, String host, int port) {
44+
this.jedisPool = new JedisPool(poolConfig, host, port);
45+
}
46+
4247
public WxCpJedisConfigStorage(JedisPoolConfig poolConfig, String host, int port, int timeout, final String password) {
4348
this.jedisPool = new JedisPool(poolConfig, host, port, timeout, password);
4449
}

0 commit comments

Comments
 (0)