1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
# Redis `list` commands (22/22 implemented)
## [BLMOVE](https://redis.io/commands/blmove/)
Pops an element from a list, pushes it to another list and returns it. Blocks until an element is available otherwise. Deletes the list if the last element was moved.
## [BLMPOP](https://redis.io/commands/blmpop/)
Pops the first element from one of multiple lists. Blocks until an element is available otherwise. Deletes the list if the last element was popped.
## [BLPOP](https://redis.io/commands/blpop/)
Removes and returns the first element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.
## [BRPOP](https://redis.io/commands/brpop/)
Removes and returns the last element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.
## [BRPOPLPUSH](https://redis.io/commands/brpoplpush/)
Pops an element from a list, pushes it to another list and returns it. Block until an element is available otherwise. Deletes the list if the last element was popped.
## [LINDEX](https://redis.io/commands/lindex/)
Returns an element from a list by its index.
## [LINSERT](https://redis.io/commands/linsert/)
Inserts an element before or after another element in a list.
## [LLEN](https://redis.io/commands/llen/)
Returns the length of a list.
## [LMOVE](https://redis.io/commands/lmove/)
Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.
## [LMPOP](https://redis.io/commands/lmpop/)
Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.
## [LPOP](https://redis.io/commands/lpop/)
Returns the first elements in a list after removing it. Deletes the list if the last element was popped.
## [LPOS](https://redis.io/commands/lpos/)
Returns the index of matching elements in a list.
## [LPUSH](https://redis.io/commands/lpush/)
Prepends one or more elements to a list. Creates the key if it doesn't exist.
## [LPUSHX](https://redis.io/commands/lpushx/)
Prepends one or more elements to a list only when the list exists.
## [LRANGE](https://redis.io/commands/lrange/)
Returns a range of elements from a list.
## [LREM](https://redis.io/commands/lrem/)
Removes elements from a list. Deletes the list if the last element was removed.
## [LSET](https://redis.io/commands/lset/)
Sets the value of an element in a list by its index.
## [LTRIM](https://redis.io/commands/ltrim/)
Removes elements from both ends a list. Deletes the list if all elements were trimmed.
## [RPOP](https://redis.io/commands/rpop/)
Returns and removes the last elements of a list. Deletes the list if the last element was popped.
## [RPOPLPUSH](https://redis.io/commands/rpoplpush/)
Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.
## [RPUSH](https://redis.io/commands/rpush/)
Appends one or more elements to a list. Creates the key if it doesn't exist.
## [RPUSHX](https://redis.io/commands/rpushx/)
Appends an element to a list only when the list exists.
|