You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have been using XREAD like so in the past: streams, err := redis.Values(conn.Do("XREAD", "BLOCK", 0, "STREAMS", stream, key))
Recently, I wanted to start reading in bulks so I opted to this option: streams, err := redis.Values(conn.Do("XREAD", "BLOCK", 0, "COUNT", bulkSize, "STREAMS", stream, key)) aiming to read UP to "bulkSize" but not block.
With redigo, looks like I am blocking until the number of messages on the stream reach "bulkSize".
However, debugging on the CLI returns immediately usingthe following command: XREAD BLOCK 0 count 20000 STREAMS changes 1738147923964-1
Hi,
I have been using XREAD like so in the past:
streams, err := redis.Values(conn.Do("XREAD", "BLOCK", 0, "STREAMS", stream, key))
Recently, I wanted to start reading in bulks so I opted to this option:
streams, err := redis.Values(conn.Do("XREAD", "BLOCK", 0, "COUNT", bulkSize, "STREAMS", stream, key))
aiming to read UP to "bulkSize" but not block.With redigo, looks like I am blocking until the number of messages on the stream reach "bulkSize".
However, debugging on the CLI returns immediately usingthe following command:
XREAD BLOCK 0 count 20000 STREAMS changes 1738147923964-1
According to this, it should be supported.
I am using Redis 6.2.14 and redigo v1.8.5
The text was updated successfully, but these errors were encountered: