Skip to main content

BLMOVE

Note

Official reference: BLMOVE.

Wait for an element and move it to another list.

Syntax

BLMOVE source destination LEFT|RIGHT LEFT|RIGHT timeout

The first LEFT/RIGHT selects the source end; the second selects the destination end.

timeout is in seconds. Use a nonnegative integer literal; 0 waits indefinitely. The example inserts elements before waiting.

Results

ReturnRowsContent
ResultSet1ELEMENT field, STRING type

Example

RPUSH demo:queue first second
BLMOVE demo:queue demo:processing LEFT RIGHT 1