Listy – tablice (indeksowane) ciągów znaków: help @list
# LPUSH users 'ala' - wstawia na początku tablicy users osobę ala # RPUSH users 'ola' - wstawia na końcu tablicy osobę ola # LRANGE users 0 -1 - pobiera wszystkie elementy od indeksu 0 do końca tablicy (-1) 1) "ala" 2) "ola"
# help @list BLPOP key [key ...] timeout Usuń i pobierz pierwszy element z listy Remove and get the first element in a list BRPOP key [key ...] timeout Usuń i pobierz ostatni element z listy Remove and get the last element in a list BRPOPLPUSH source destination timeout Pobierz wartość z listy, wypchnij ją na inną listę i zwróć Pop a value from a list, push it to another list and return it LINDEX key index Pobierz element z listy według jego indeksu Get an element from a list by its index LINSERT key BEFORE|AFTER pivot value Wstaw element przed lub po innym elemencie na liście Insert an element before or after another element in a list LLEN key Uzyskaj długość listy Get the length of a list LPOP key Usuń i zdobądź pierwszy element na liście Remove and get the first element in a list LPUSH key value [value ...] Dołącz jedną lub wiele wartości do listy Prepend one or multiple values to a list LPUSHX key value Dołącz wartość do listy, tylko jeśli lista istnieje Prepend a value to a list, only if the list exists LRANGE key start stop Pobierz zakres elementów z listy Get a range of elements from a list LREM key count value Usuń elementy z listy Remove elements from a list LSET key index value Ustaw wartość elementu na liście według jego indeksu Set the value of an element in a list by its index LTRIM key start stop Przytnij listę do określonego zakresu Trim a list to the specified range RPOP key Usuń i pobierz ostatni element na liście Remove and get the last element in a list RPOPLPUSH source destination Usuń ostatni element z listy, dodaj go do innej listy i zwróć Remove the last element in a list, prepend it to another list and return it RPUSH key value [value ...] Dołącz jedną lub wiele wartości do listy Append one or multiple values to a list RPUSHX key value Dołącz wartość do listy, tylko jeśli lista istnieje Append a value to a list, only if the list exists