Before Redis 3.2, the list object is implemented by ziplist
or linkedlist
, depending on the values in list, but Redis 3.2 create a general data structure - the combination of ziplist
and linkedlist
, called quicklist
, in place of using them individually.
In Redis 3.0, a small list that constructs by small strings is encoded by ziplist
:
> rpush lst 1 2 3 "hello" "world"
(integer) 5
> object encoding lst
"ziplist"