This post was updated 734 days ago and some of the ideas may be out of date.

连接集群任意一台redis执行即可(生产环境请勿使用,可能会造成主进程阻塞

redis-cli -c --cluster call 172.22.0.51:6379 keys *