Redis 命令

redis-cli -p xxxx       启动 redis 客户端 -p为指定端口(xxxx为端口号)

info replication         查看redis  replication相关信息

info            查看redis相关信息

KEYS *         查看所有的key(匹配数据库中所有 key ) Key:一个字符串  Value:string、hash、list、set、sorted set等数据结构存储数据。

llen GWLOG:860       查看list(列表)类型的key的长度

DEL GWLOG:860      删除list列表GWLOG:860  

posted on 2020-09-03 17:51  leader77  阅读(161)  评论(0编辑  收藏  举报