XREADGROUP

Delivers new stream entries to a consumer in a group.

Streams · Example verified

Syntax covered here

XREADGROUP GROUP group consumer STREAMS key >

Create the group first; the tested > selector delivers a new entry that subsequent pending and acknowledgement commands operate on.

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"]]]]]