February 2018
Intermediate to advanced
382 pages
11h 33m
English
As we mentioned previously, a list in Redis is similar to a doubly linked list, so that new elements can be added to a list by using the following three commands:
LPUSH, RPUSH, and LINSERT return the length of the list after insertion. It is not necessary to initialize an empty list for a key before pushing elements. If we push elements to the list for a non-existent key, Redis will create an empty list first and associate it with the key. Similarly, we don't need to delete keys whose associated list is empty, as Redis will do the recycling for us. ...
Read now
Unlock full access