LPUSHX
Note
Official reference: LPUSHX.
Push onto the left end only if the list exists.
Syntax
LPUSHX key element [element ...]
Arguments are pushed onto the head in sequence: first second produces second, first at the head.
Results
| Return | Rows | Content |
|---|---|---|
| Update count | -- | Length of the list after the PUSH operation. |
Example
RPUSH demo:queue first
LPUSHX demo:queue second