4 ms·
Redis doesn't compress contents of lists (or hashes or zsets) in a "ziplist", it packs them in a concise manner that omits structure overhead. Source: the sour
by DrJosiah 13y ago
Redis doesn't compress contents of lists (or hashes or zsets) in a "ziplist", it packs them in a concise manner that omits structure overhead.
Source: the source code of Redis itself https://github.com/antirez/redis/blob/unstable/src/ziplist.c https://github.com/antirez/redis/blob/unstable/src/ziplist.c , Redis documentation: http://redis.io/topics/memory-optimization http://redis.io/topics/memory-optimization , and/or my book: http://bitly.com/redis-in-action http://bitly.com/redis-in-action .
- glebm 13y agoThanks, so it's packing it not compressing, I have updated the article accordingly.