List
is a LinkedList
of string values, commonly used to implement stacks and queues.
Some basic commands include:
* List
* LPUSH (push to head) RPUSH (push to tail)
* LPOP (pop from head) RPOP (pop from tail)
* LLEN (return the length of the list)
* LMOVE (atomically move an element from one list to another)
* LRANGE (return elements within a specified range in the list)
* LTRIM (trim a list to a specified range of elements)
Reference: https://redis.io/docs/data-types/lists/