1 登陆

redis-cli 远程访问:

$ redis-cli -h host -p port -a password

2 常用命令

redis 127.0.0.1:6379> COMMAND KEY_NAME (1) 查找key的类型 type key

查找

keys *oob* 列出所有包含oob的key

  1. hash 集合

HMSET sqkey name “redis tutorial” description “redis basic commands for caching” likes 20 visitors 23000