Redis List Operations: Creation, Deletion, Update, and Query
Creating Lists
LPUSH
The LPUSH command adds one or more elements to the beginning of a list.
127.0.0.1:6379> lpush mylist item0 item1 item2
(integer) 3
127.0.0.1:6379> lrange mylist 0 3
1) "item2"
2) "item1"
3) "item0"
127.0.0.1:6379> lpush mylist item3
(integer) 4
127.0.0.1:6379> lrange mylist 0 4
1) & ...
Posted on Fri, 15 May 2026 18:11:46 +0000 by jyushinx