二: Hash 哈希 类型。 适合存储对象
增: hset 例子: hset food name ‘apple’
删: hdel food name
批量增: hmset food name ‘apple’ color “red”
批量查: hmget human name age
查: hget food color
查所有key: hkeys food
查所有key 和 value : hgetall human
hash 字段的自增: hincrby human age 10
key person value 一堆k v 组合
hash数据类型的遍历: Hscan 不怎么常用
二: Hash 哈希 类型。 适合存储对象增: hset 例子: hset food name ‘apple’删: hdel food name批量增: hmset food name ‘apple’ color “red”批量查: hmget human name age查: hget food color查所有key: hkeys food查所有key 和 value : hgetall humanhash 字段的自增: hincrby human age 10ke.