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

Try to use "keys" command, got "Parse command error. Cmd type: 0, state: 5, break position: 12 #77

Closed
youguys opened this issue Apr 1, 2022 · 2 comments

Comments

@youguys
Copy link

youguys commented Apr 1, 2022

I was trying to use redisClusterCommandArgv to get data from redis cluster.
Both "set, get, del" work well, but failed for "keys" like "keys xxxxxxxx:*".
Is "keys" command unsupported?

@zuiderkwast
Copy link
Collaborator

zuiderkwast commented Apr 1, 2022

Hi! Hiredis-cluster doesn't know which node to send KEYS. Maybe you expect it should send it to all nodes and then aggregate the result? It's not implemented. It's the same issue as #50 for other commands.

You can use the low-level API to send the command to a specific node.

@youguys
Copy link
Author

youguys commented Apr 2, 2022

Hi! Hiredis-cluster doesn't know which node to send KEYS. Maybe you expect it should send it to all nodes and then aggregate the result? It's not implemented. It's the same issue as #50 for other commands.

You can use the low-level API to send the command to a specific node.

Got it, thanks a lot.

@youguys youguys closed this as completed Apr 2, 2022
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