Redis
Streams
An append-only log
Intro
…
Commands
-
XADD: Add a new entry
- eg
XADD <name> * key1 value1 key2 value2 ...
- eg
-
XREAD: Read entries from a position moving forward
- eg
XREAD
- eg
-
XRANGE: Read entries from x to y
- eg
XRANGE <name> <from>
- eg
-
XLEN: Length of a stream
- eg
XLEN <name>
- eg