操作命令
Dbsize——查询key数量
Keys *——查询所有key
Keys ?——模糊查询key
Exists key——判断key是否存在
Move key db——移动key到其他数据库
Expire key——为key设置过期时间
Ttl key——查看key过期时间,-1永不过期,-2已经过期
Type key——查看key的类型
Del key——删除key
查询key数量
查询所有key
数据库
默认带着三个key
Mylist
Counter:rand_int
Key:rand_int
模糊查询
查看是否存在
移动
设置过期时间
查看过期时间
查看类型
删除