redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.31k stars 1.19k forks source link

Handle CROSSSLOT like redis-py-cluster #1768

Closed KrishnaPravin closed 1 year ago

KrishnaPravin commented 1 year ago

Can you make scan command to scan all the nodes when the redis is in cluster mode. (And for other commands that work only on one node even in cluster mode)

Info from AWS KB: https://repost.aws/knowledge-center/elasticache-crossslot-keys-error-redis#Method%201:~:text=Resolution-,Method%201,-You%20can%20use

KrishnaPravin commented 1 year ago

redis-py-cluster can do mget but not scan, as scan does not require key input https://redis-py.readthedocs.io/en/stable/lua_scripting.html#cluster-mode