Redis: how can I specified the id parameter in xread or xreadgroup command

Created on 11 Feb 2019  路  2Comments  路  Source: go-redis/redis

from the doc, i see the XReadGroupArgs struct as below:
type XReadGroupArgs struct { Group string Consumer string Streams []string Count int64 Block time.Duration NoAck bool }
my question is that how can i specified the id parameter?

Most helpful comment

XReadGroupArgs.Streams = []string{"stream1", "id1", "stream2", "id2"}

All 2 comments

XReadGroupArgs.Streams = []string{"stream1", "id1", "stream2", "id2"}

THANKS very much, I will try it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikhailsizov picture mikhailsizov  路  5Comments

Turing-Chu picture Turing-Chu  路  3Comments

expectrox picture expectrox  路  4Comments

zhangruiskyline picture zhangruiskyline  路  7Comments

mouhong picture mouhong  路  3Comments