kevy4.0

LPOP

Pop one or more elements from the head of a list.

LPOP key [count]
Group
List
Since
1.0.0
Arity
at least 2
Flags
write

Complexity

O(C) elements popped

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

LPOP key 0 on an existing key replies a nil array where Redis replies an empty array

See also

BLPOPBRPOPBRPOPLPUSHLINDEXLLENLMOVELPOSLPUSHLRANGELREMLSETLTRIMRPOPRPOPLPUSHRPUSH

← All commands