Describe the bug
from the docs
there is this command that reads last item from all streams
> XREAD STREAM streamA streamB streamC streamD + + + +
but using "STREAM" results in "ERR syntax error". Maybe it was a typo, but using
> XREAD STREAMS streamA streamB streamC streamD + + + +
leads to "ERR Invalid stream ID specified as stream command argument" error.
I have not successfully used the XREAD with + operator as mentioned in the docs yet
To reproduce
call
> XADD streamA * test test
> XREAD STREAMS streamA +
results in "ERR Invalid stream ID specified as stream command argument"
Expected behavior
expects to return last item in stream
Comment From: LiorKogan
This feature was added in Redis 7.4-rc1
- https://github.com/redis/redis/pull/13117 XREAD: new id value + to start reading from the last message
Which version are you using?
Thank you, we will fix the documentation STREAM --> STREAMS.
Comment From: kevzzsk
ok that makes sense, I thought I was already using 7.4. I am still on 7.2. Thanks