SSDB - 命令
hset name key value
设置 hashmap 中指定 key 对应的值内容.
hget name key
获取 hashmap 中指定 key 的值内容.
hdel name key
获取 hashmap 中的指定 key.
hincr name key [num]
使 hashmap 中的 key 对应的值增加 num.
hexists name key
判断指定的 key 是否存在于 hashmap 中.
hsize name
返回 hashmap 中的元素个数.
hlist name_start name_end limit
列出名字处于区间 (name_start, name_end] 的 hashmap.
hrlist name_start name_end limit
像 hrlist, 逆序.
hkeys name key_start key_end
列出 hashmap 中处于区间 (key_start, key_end] 的 key 列表.
hgetall name
返回整个 hashmap.
hscan key_start key_end limit
列出 hashmap 中处于区间 (key_start, key_end] 的 key-value 列表.
hrscan key_start key_end limit
像 hscan, 逆序.
hclear name
删除 hashmap 中的所有 key.
multi_hset name key1 value1 key2 value2 …
批量设置 hashmap 中的 key-value.
multi_hget name key1 key2 …
批量获取 hashmap 中多个 key 对应的权重值.
multi_hdel name key1 key2 …
指删除 hashmap 中的 key.