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

redisClusterCommand api problem:Parse command error #107

Open
miaojianxin opened this issue Mar 20, 2019 · 3 comments
Open

redisClusterCommand api problem:Parse command error #107

miaojianxin opened this issue Mar 20, 2019 · 3 comments

Comments

@miaojianxin
Copy link

HI,
i'm the first time use the vip api, now ,i have a program that use libhiredis works well(connect to single node redis)
now i want it to connect to the redis cluster . so i use the vip api.
but there are a lot of commands that get error when execute through redisClusterCommand .
for example :
redisClusterCommand(cc,'DBSIZE');
redisClusterCommand(cc,'select 0');
redisClusterCommand(cc,'SCAN 0');
when use redisCommand, these are all ok.
does the vip api not support all the commands that are ok in cmd line?
thank you

@thakurajayL
Copy link

  • select command is not supported in redis cluster. this is as per redisCluster support.
  • SCAN command is not supported in the vip client.

@smilebinbin
Copy link

how to support SCAN?

@thakurajayL
Copy link

You need to direct your queries to one by one node in the cluster. Client has list of nodes in the cluster.

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