mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	新加不带timeout跟password的构造方法,满足8/2需求。
建议生产环境都使用带poolConfig的构造方法,防止redis出现链接异常,可参考 bug https://github.com/xetorthio/jedis/issues/848
This commit is contained in:
		| @ -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); | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 bobbyguo
					bobbyguo