Stream

XGROUP SETID

Set the last delivered ID for a consumer group.

Arguments

keybodystrrequired

The key of the stream.

groupbodystrrequired

The consumer group name.

idbodystrrequired

The stream entry ID to set as the last delivered ID. Use '$' for the last entry.

entries_readbodyint

Set the number of entries read by the group.

Response

bool

Returns "OK" if the ID was set successfully.

Set to beginning
result = redis.xgroup_setid("mystream", "mygroup", "0-0")
Set to end with entries count
result = redis.xgroup_setid("mystream", "mygroup", "$", entries_read=10)
Loading search…