Difficulty: Advanced
How does Redis optimize memory internally for small datasets?
Using compact encodings like ZipLists and IntSets until the collection reaches a certain size, then converting to standard formats.
ZipList, SkipList, IntSet, Memory Fragmentation