Redis Lpop command
Redis Lpop command removes and returns the first element of the list.
grammar
redis Lpop basic command syntax is as follows:
redis 127.0.0.1:6379> LLEN KEY_NAME
Available versions
> = 1.0.0
return value
The first element of the list. When the list is key does not exist, it returns nil.
Examples
redis 127.0.0.1:6379> RPUSH list1 "foo" (integer) 1 redis 127.0.0.1:6379> RPUSH list1 "bar" (integer) 2 redis 127.0.0.1:6379> LPOP list1 "foo"