For standalone Redis:

keys *Copy the code

For redis Cluster:

redis-cli -c -a [CLUSTER_AUTH] --cluster call [CLUSTER_IP:CLUSTER_POPRT] keys \*Copy the code

Such as:

Redis -cli -c --cluster call 172.22.249.218:6379 keys \*Copy the code

There are pictures to prove:

The author is simple

Author: Xiaowantang, a passionate and serious writer, currently maintains the original public account “My Xiaowantang”, focusing on writing the go language, Docker, Kubernetes, Java and other development, operation and maintenance knowledge to enhance the hard power of the article, looking forward to your attention. Note: Be sure to specify the source (note: from the official account: My Small bowl of soup, author: Small bowl of soup)