Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加redis的database配置 #25

Closed
qixiaobo opened this issue Mar 15, 2017 · 2 comments
Closed

增加redis的database配置 #25

qixiaobo opened this issue Mar 15, 2017 · 2 comments

Comments

@qixiaobo
Copy link
Contributor

目前并没有redis的database配置
`/**
* 初始化方法
*/
public void init(){
if(jedisPool == null){
if(password != null && !"".equals(password)){
jedisPool = new JedisPool(new JedisPoolConfig(), host, port, timeout, password);
}else if(timeout != 0){
jedisPool = new JedisPool(new JedisPoolConfig(), host, port,timeout);
}else{
jedisPool = new JedisPool(new JedisPoolConfig(), host, port);
}

	}
}`
@yanlichong
Copy link

重写了init方法可以实现

@alexxiyang
Copy link
Owner

2.4.6已经合并了可以选择database的改动

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants