Lists Rpop
# Redis Rpop Command
[!(#) Redis Lists](#)
The Redis Rpop command is used to remove and return the last element of a list.
### Syntax
The basic syntax for the Redis Rpop command is as follows:
redis 127.0.0.1:6379> RPOP KEY_NAME
### Available Since
>= 1.0.0
### Return Value
The removed element.
Returns nil if the list does not exist.
### Example
redis> RPUSH mylist "one"(integer) 1 redis> RPUSH mylist "two"(integer) 2 redis> RPUSH mylist "three"(integer) 3 redis> RPOP mylist "three" redis> LRANGE mylist 0 -11) "one"2) "two" redis>
[!(#) Redis Lists](#)
YouTip