🔗 Iterate over all keys in a Redis Cluster /by @mp911de

Redis provides a neat command to iterate over all keys on a node. It’s the SCAN command that is used to scan over keys and to return a cursor to resume then the scanning from the cursor position. Complexity comes in when using Redis Cluster. In the previous scenario, all keys are located on one Redis node. With Redis Cluster keys are spread over some nodes.

🌎 http://www.paluch.biz/blog/162-iterate-over-all-keys-in-a-redis-cluster.html