0

How to constantly consume and output messages from a stream using redis cli?

I tried the command below, however it only consume the last one message but what I want from the redis cli is to constantly consume and output messages on the screen while the publisher is continuously publishing messages.

XREAD BLOCK 0 STREAMS mystream $

user1870400
  • 6,028
  • 13
  • 54
  • 115

1 Answers1

0

Regrettably, unlike the special modes for MONITOR and SUBSCRIBE, the redis-cli doesn't feature a "streaming" mode yet. Please feel free to propose the news feature by opening an issue at https://github.com/redis/redis/issues

Itamar Haber
  • 47,336
  • 7
  • 91
  • 117