[redis] redis cli的学习记录

时间:2022-06-02 18:19:08

文档:

https://redis.io/topics/rediscli

help命令:

The command can be used in two forms:

. help @<category> shows all the commands about a given category. The categories are: 
@generic, @list, @set, @sorted_set, @hash, @pubsub, @transactions, @connection, @server, @scripting, @hyperloglog.
. help <commandname> shows specific help for the command given as argument.

比如 help @cluster 查看所有与cluster有关的命令。

查看状态的命令:

redis-cli --stat

遍历所有的数据:

redis-cli --scan

监控:

redis-cli monitor