This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
Redis的ziplist是一个紧凑的字节数组结构,每个元素之间都是紧挨着。
![[Snipaste_2023-02-24_14-42-21 1.png]]
+ 如果存储的是hash结构,那么key和value会作为两个entry被相邻存储
+ 如果是zset,value和score会作为两个entry被相邻存储
+ 如果set里存储的是字符串,那么sadd会升级为hashtable结构(HashSet)
# 存储界限