How to List All Redis Databases?

前端 未结 3 1515
北恋
北恋 2020-12-12 08:59

I ran this command to access my redis server.

telnet 127.0.0.1 6379

What is the command to show all of my databases?

3条回答
  •  渐次进展
    2020-12-12 10:06

    Or you can just run the following command and you will see all databases of the Redis instance without firing up redis-cli:

    $ redis-cli INFO | grep ^db
    db0:keys=1500,expires=2
    db1:keys=200000,expires=1
    db2:keys=350003,expires=1
    

提交回复
热议问题