Replies: 1 comment
-
#11290 introduced listpack as an encoding for set, from version 7.2
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,everyone.I am studying the correspondence between Redis objects and underlying data structures,so I pull the redis:lastest image from docker hub(from
docker inspect
I know the exact version of redis is 7.2.4).What I learned is that Set is encoded as intset when all elements are ints and SCARD no greater than 512,otherwise hashtable.However,I gained the following result.
Seems that listpack has been the underlying data structure of Set when there are elements that are not ints and SCARD no greater than 512.I checked the releases but didn't find any clues.So which version did this change start from?
Besides,I found that there are some other differences between what I know and the facts,i.e.,seems that listpack has replaced ziplist.Could someone summarized the lastest correspondence?
Beta Was this translation helpful? Give feedback.
All reactions