You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
Redis的ziplist是一个紧凑的字节数组结构,每个元素之间都是紧挨着。
|
|
|
|
|
![[Snipaste_2023-02-24_14-42-21 1.png]]
|
|
|
|
|
|
|
|
|
|
+ 如果存储的是hash结构,那么key和value会作为两个entry被相邻存储
|
|
|
|
|
+ 如果是zset,value和score会作为两个entry被相邻存储
|
|
|
|
|
+ 如果set里存储的是字符串,那么sadd会升级为hashtable结构(HashSet)
|
|
|
|
|
|
|
|
|
|
# 存储界限
|