-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Closed
Labels
class:featurestate:needs-designthe solution is not obvious and some effort should be made to design itthe solution is not obvious and some effort should be made to design it
Milestone
Description
Hello,
I lack a possibility to read from stream with XREAD starting with the last available message. It is possible read from concrete ID (or all with ID=0) or wait for new message (with special ID $).
But for our usage will be nice have to have possibility start with last message from stream, for example with special ID +:
XREAD BLOCK 10000 STREAMS stramA streamB streamC + + +
If I need start from last message then now I must use firstly:
XREVRANGE streamA + - COUNT 1
XREVRANGE streamB + - COUNT 1
...
XREVRANGE streamX + - COUNT 1
and then I can continue in loop with:
XREAD BLOCK 10000 STREAMS stramA streamB ... streamX idA idB ... idX
Thanks
jfloodnet and sedyh
Metadata
Metadata
Assignees
Labels
class:featurestate:needs-designthe solution is not obvious and some effort should be made to design itthe solution is not obvious and some effort should be made to design it
Type
Projects
Status
Done