BLMOVE

Since 1.1.0Lists

Syntax

BLMOVE source destination LEFT|RIGHT LEFT|RIGHT timeout
  • Flags: blocking, write
  • ACL categories: @blocking, @list, @slow, @write
  • Arity: 6

LMOVE that waits, as BLPOP does, until source has an element or timeout seconds have passed.

Reply

  • The element moved.
  • nil if the timeout passed.

Examples

> RPUSH b2 1 2
(integer) 2
> BLMOVE b2 b3 LEFT RIGHT 1
"1"