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

PoolUtils createJedisPool can't support database parameter #112

Closed
zhoutaoo opened this issue Aug 3, 2016 · 1 comment
Closed

PoolUtils createJedisPool can't support database parameter #112

zhoutaoo opened this issue Aug 3, 2016 · 1 comment
Assignees
Labels

Comments

@zhoutaoo
Copy link

zhoutaoo commented Aug 3, 2016

new JedisPool(poolConfig, jesqueConfig.getHost(), jesqueConfig.getPort(),
jesqueConfig.getTimeout(), jesqueConfig.getPassword(),jesqueConfig.getDatabase())

if (jesqueConfig.getMasterName() != null && !"".equals(jesqueConfig.getMasterName()) 
                && jesqueConfig.getSentinels() != null && jesqueConfig.getSentinels().size() > 0) {
            return new JedisSentinelPool(jesqueConfig.getMasterName(), jesqueConfig.getSentinels(), poolConfig,  jesqueConfig.getTimeout(), jesqueConfig.getPassword());
        } else {
            return new JedisPool(poolConfig, jesqueConfig.getHost(), jesqueConfig.getPort(), 
                    jesqueConfig.getTimeout(), jesqueConfig.getPassword());
        }
@gresrun
Copy link
Owner

gresrun commented Aug 19, 2016

Now passing the database to the pools in #114.

@gresrun gresrun closed this as completed Aug 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants