1. 程式人生 > >[redis] redis cli的學習記錄

[redis] redis cli的學習記錄

 

文件:

https://redis.io/topics/rediscli

 

help命令:

The command can be used in two forms:

1. 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.
2. help <commandname> shows specific help for the command given as argument.

比如 help @cluster 檢視所有與cluster有關的命令。

 

檢視狀態的命令:

redis-cli --stat

遍歷所有的資料:

redis-cli --scan

監控:

redis-cli monitor