RPOPLPUSH
Note
Official reference: RPOPLPUSH.
Move the source tail element to the destination head.
Syntax
RPOPLPUSH source destination
New code can use LMOVE with RIGHT LEFT.
Results
| Return | Rows | Content |
|---|---|---|
| ResultSet | 1 | ELEMENT field, STRING type |
Example
RPUSH demo:queue first second
RPOPLPUSH demo:queue demo:processing