Skip to main content

LPOP

Note

Official reference: LPOP.

Pop elements from the left end.

Syntax​

LPOP key [count]

Omit count to pop one element; otherwise pop at most count elements.

Results​

ReturnRowsContent
ResultSetmultipleELEMENT field, STRING type

Example​

RPUSH demo:queue first second
LPOP demo:queue 2