Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAbout command "keys * " in cluster--How can I get all keys in redis cluster? #1962
Comments
|
You can't. You would have to ask each node seperately. But please avoid Btw, this issue tracker should be used for bugs or improvements to the Redis server. For questions like your's please ask on the mailing list or in the irc channel. |
|
Thank you for your answer. |
|
Then do that ;) |
|
lol @badboy, did you ever? I don't know that. but also, is their page a wiki where anyone can edit it? |
|
The docs are open at https://github.com/antirez/redis-doc, and this could belong in 'topics/cluster-tutorial.md'. Newer versions of Redis include more cluster support in the cli. To answer the OP's question, you can do the following to have a command, such as
The cli also supports a |
How can I get all keys in redis cluster?
When I use keys * ,I get a result of the redis-server I have connected:
[admin@localhost src]$ ./redis-cli -c -p 7000
127.0.0.1:7000> keys *
(empty list or set)
127.0.0.1:7000> get foo
-> Redirected to slot [12182] located at 127.0.0.1:7002
"bar"
127.0.0.1:7002>