You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call redis.keys("*") method, it would give me only the keys from one node from the cluster.
So I gave the map() method a try:
withredis.map() asc:
r= [c.keys(*)]
Which still gives me the single node's values. Maybe I just used the map() wrong. Then I tried redis methods like info() and dbsize(), they all report back a list of values representing the whole cluster.
Please let me know if it's possible to achieve this.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
There's no good way to do this at the moment. You'd have to call out to each individual connection or setup a custom router which understood the keys command and ran it on all nodes.
It's pretty awful but you can do this:
keys = []
for db in cluster:
keys.extend(cluster[db].keys())
On Monday, March 25, 2013 at 3:03 PM, oEL wrote:
Hi,
When I call redis.keys("") method, it would give me only the keys from one node from the cluster.
So I gave the map() method a try:
with redis.map() as c: r = [c.keys()]
Which still gives me the single node's values. Maybe I just used the map() wrong. Then I tried redis methods like info() and dbsize(), they all report back a list of values representing the whole cluster.
Please let me know if it's possible to achieve this.
Thanks in advance.
—
Reply to this email directly or view it on GitHub (#30).
Hi,
When I call redis.keys("*") method, it would give me only the keys from one node from the cluster.
So I gave the map() method a try:
Which still gives me the single node's values. Maybe I just used the map() wrong. Then I tried redis methods like info() and dbsize(), they all report back a list of values representing the whole cluster.
Please let me know if it's possible to achieve this.
Thanks in advance.
The text was updated successfully, but these errors were encountered: