map(命令)hset
作者:互联网
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
标签:map,age,sex,命令,user,hget,hset 来源: https://www.cnblogs.com/dayanjing/p/14049090.html