@@ -43,17 +43,24 @@ public class WxCpJedisConfigStorage implements WxCpConfigStorage {
43
43
private volatile File tmpDirFile ;
44
44
private volatile ApacheHttpClientBuilder apacheHttpClientBuilder ;
45
45
46
+ public WxCpJedisConfigStorage (JedisPool jedisPool ) {
47
+ this .jedisPool = jedisPool ;
48
+ }
49
+
46
50
public WxCpJedisConfigStorage (String host , int port ) {
47
- this . jedisPool = new JedisPool (host , port );
51
+ jedisPool = new JedisPool (host , port );
48
52
}
49
53
50
-
51
54
public WxCpJedisConfigStorage (JedisPoolConfig poolConfig , String host , int port ) {
52
- this .jedisPool = new JedisPool (poolConfig , host , port );
55
+ jedisPool = new JedisPool (poolConfig , host , port );
56
+ }
57
+
58
+ public WxCpJedisConfigStorage (JedisPoolConfig poolConfig , String host , int port , int timeout , String password ) {
59
+ jedisPool = new JedisPool (poolConfig , host , port , timeout , password );
53
60
}
54
61
55
- public WxCpJedisConfigStorage (JedisPoolConfig poolConfig , String host , int port , int timeout , final String password ) {
56
- this . jedisPool = new JedisPool (poolConfig , host , port , timeout , password );
62
+ public WxCpJedisConfigStorage (JedisPoolConfig poolConfig , String host , int port , int timeout , String password , int database ) {
63
+ jedisPool = new JedisPool (poolConfig , host , port , timeout , password , database );
57
64
}
58
65
59
66
/**
0 commit comments