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.

9 lines
390 B

This file contains ambiguous Unicode characters!

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被相邻存储
+ 如果是zsetvalue和score会作为两个entry被相邻存储
+ 如果set里存储的是字符串那么sadd会升级为hashtable结构HashSet
# 存储界限