Ioredis would like to send commands to multiple nodes in the cluster (such as flushall and keys).
After reviewing the following documentation, I was going to use the node list that I got from Cluster#nodes, but when I called Cluster#nodes, it returned an empty array and I couldn't continue. https://github.com/luin/ioredis/blob/master/README.md
Running commands to multiple nodes item
We are testing with the following source code to verify the node list.
When I tried outputting the cluster, the nodes did not contain any values as shown below.