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

db:1 #46

Open
ORESoftware opened this issue Sep 1, 2015 · 1 comment
Open

db:1 #46

ORESoftware opened this issue Sep 1, 2015 · 1 comment

Comments

@ORESoftware
Copy link

ORESoftware commented Sep 1, 2015

I am trying to read from DB=1 instead of the default DB=0 for Redis. So I did this:

const redisClient = Sentinel.createClient(REDIS_SENTINEL_MASTER_NAME, {db:1);

and it's only going to DB:0, not DB:1

is there something I am doing wrong?

@chitter99
Copy link

Had the same issue but figured it out. Problem is that the module is using the node redis version 0.12.x. In that version you are supposed to execute the select command yourself after connecting.

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

2 participants