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:
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.