flushdb
keys *
set name wwl
get name
del name
验证键是否存在 exists name
添加一个haircolor= red的键值对,并指定它的有效期是10秒,可以这样做:
setex haircolor 10 red
HSET myhash field1 “foo”
HGET myhash field1
HEXISTS myhash field2
CONFIG SET requirepass “mypass”
授权登录:auth “mypass”
待续