Skip to main content

RPOP

Note

Official reference: RPOP.

Pop elements from the right end.

Syntax​

RPOP 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
RPOP demo:queue 2