Hash¶
save one level json (a Python dict) but can operate on each key-value pair separately.
commands
hmget key k [k ...]: get values based on sub-keysdeprecated?hmset key k v [k v ...]: set values with key-value pairshdel key k [k ...]: delete key-value pairs, return number of pairs found and deletedhlen key: return number of key-value pairs
other commands
hexists key k: check key existencehkeys key: get keyshvals key: get valueshgetall key: get all key-value pairshincrby key k val_incr: increase value at khincrbyfloat key k val_incr: increase value at k by float