Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
/ redis-cli-cluster Public archive

cluster-aware redis-cli

License

Notifications You must be signed in to change notification settings

talkiq/redis-cli-cluster

Repository files navigation

redis-cli-cluster

Cluster-aware re-implementation of redis-cli.

Here's the problem:

$ redis-cli -c -h node-0 set apple sauce
-> Redirected to slot [7092] located at 172.255.0.3:6379
OK
$ ctrl-D
$ redis-cli -c -h node-0 keys "*"
(empty list or set)
$ redis-cli -c -h node-1 keys "*"
1) "apple"

Wouldn't it be great if that keys * worked the same was as in non-clustered mode?

$ redis-cli-cluster -h node-0 set apple sauce
-> Redirected to slot [7092] located at 172.255.0.3:6379
OK
$ ctrl-D
$ redis-cli-cluster -h node-0 keys "*"
1) "apple"