Redis Data Types Cheat Sheet/Move from one list to another

Atomically move an item between lists.

Section: Lists

Move from one list to another

bash
bash
RPOPLPUSH source processing

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Lists
Move between lists with direction control
Generalized replacement for RPOPLPUSH.
OpenIn sheetbashsame section
Push to head of list
Insert one or more elements at the head.
OpenIn sheetbashsame section
Push to tail of list
Insert one or more elements at the tail.
OpenIn sheetbashsame section
Pop from head
Remove and return the first element.
OpenIn sheetbashsame section
Pop from tail
Remove and return the last element.
OpenIn sheetbashsame section
Blocking pop from one or more lists
Wait up to 30 seconds for a new element.
OpenIn sheetbashsame section