Redis 常用命令(学习笔记二)
1、查看所有键
keys *
2键总数
dbsize
3检查键
exists key
4删除
del key
del a b c
5键过期
expire abc 10
expire abc -1
6键类型
type key
7、自增自减字段
8、redis验证码、限速
9、哈希:hkeys hvals
10、哈希类型:hmset
11、列表型数据:
12、
1、查看所有键
keys *
2键总数
dbsize
3检查键
exists key
4删除
del key
del a b c
5键过期
expire abc 10
expire abc -1
6键类型
type key
7、自增自减字段
8、redis验证码、限速
9、哈希:hkeys hvals
10、哈希类型:hmset
11、列表型数据:
12、