StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

Is this command implemented?

Open wj8400684 opened this issue 3 years ago • 4 comments

XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]

wj8400684 avatar May 27 '22 07:05 wj8400684

@wj8400684 - XREAD groups is implemented by StreamReadGroup/StreamReadGroupAsync, however, the blocking aspect of this command is not possible at the moment given the architectural constraints of this library.

I wrote an article about stream basics for .NET devs. I also added tutorials for those who absolutely need blocking stream reads using ServiceStack.Redis (written by an old colleague of the authors of this library) and CSRedis, which is a resurrected .NET Redis library - both of which do support the blocking reads.

slorello89 avatar May 27 '22 12:05 slorello89

I read the source code of your framework. There is a request timeout mechanism. Is it because this can't be done?

wj8400684 avatar May 28 '22 16:05 wj8400684

The timeout version is blocking which currently isn't supported, but you could call it explicitly via IDatabase.Exec() (this isn't a simple operation). We're aiming to support blocking commands in the future (see #2055and #1961), but it's not a trivial thing and will take some time.

NickCraver avatar May 28 '22 19:05 NickCraver

OK, thanks

wj8400684 avatar May 29 '22 05:05 wj8400684