edit-icon download-icon

How to use the scan command for Redis clusters?

Last Updated: Jul 20, 2017

Redis clusters do not support the SCAN command. You can use the ISCAN command to achieve the same function. The syntax of the ISCAN command is as follows:

  1. ISCAN idx cursor [MATCH pattern] [COUNT count]

idx indicates the node ID, starting from 0. For cluster instances of 16 GB to 64 GB, each instance has eight nodes, so idx ranges from 0 to 7. For cluster instances of 128 GB to 256 GB, each instance has 16 nodes.

Thank you! We've received your feedback.