XCLAIM
Transfers a pending entry to another consumer.
Streams · Example verified
Syntax covered here
XCLAIM key group consumer min-idle-ms idThe entry is first delivered to one consumer, then claimed by another with a zero minimum idle time.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> XADD events 1-0 event created
"1-0"
# connection: default
> XGROUP CREATE events workers 0
"OK"
# connection: default
> XREADGROUP GROUP workers alice STREAMS events >
[["events",[["1-0",["event","created"]]]]]
# connection: default
> XCLAIM events workers bob 0 1-0
[["1-0",["event","created"]]]