BRPOPLPUSH

Since 1.1.0Lists

Syntax

BRPOPLPUSH source destination timeout
  • Flags: blocking, write
  • ACL categories: @blocking, @list, @slow, @write
  • Arity: 4

RPOPLPUSH that waits until source has an element or timeout seconds have passed. Use BLMOVE in new code.

Reply

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

Examples

> BRPOPLPUSH empty dst 0.1
(nil)