map命令
hash类型(map):
设值:
hset user age 12
hset user name zhangsan
hset user sex boy
取值:
hget user age
hget user name
hget user sex
判断字段是否存在:
hexists user age
只获取字段名字或者字段值:
hkeys user
hvals user
删除某个字段
hdel user age
获取所有key-field对:
hgetall user