Redis的hash类型的应用场景

一、概述   hash类型是一个string类型的field和value的映射表,每个 hash 可以存储 232 - 1 键值对(40多亿),hash类型主要有以下应用场景。 二、常用命令 hset user id 1向 user(map) 中添加 key-value 对(id,1): hget user id 获取 user 中的 id 所对应的值:  hmset user name liju
相关文章
相关标签/搜索