数据结构概览
类型 | 编码 | 底层数据结构 |
---|---|---|
string | int | 整数值 |
string | raw | 简单动态字符串 |
string | embstr | 用 embstr 编码的简单动态字符串 |
hash | ziplist | 压缩列表 |
hash | hashtable | 字典 |
list | ziplist | 压缩列表 |
list | linkedlist | 双端列表 |
set | intset | 整数集合 |
set | hashtable | 字典 |
zset | ziplist | 压缩列表 |
zset | skiplist | 跳表和字典 |