0

What is this NOMKSTREAM in redis stream? I went through the documentation. Too bad they do not even provide simple description about it.

https://redis.io/commands/xadd

Can someone please explain?

RamPrakash
  • 2,218
  • 3
  • 25
  • 54

2 Answers2

1

By default, if the stream key doesn't exist, XADD will create the stream automatically. However, if NOMKSTREAM is specified, XADD will return a NULL reply in this case.

for_stack
  • 21,012
  • 4
  • 35
  • 48
0

The "simple" description is right at the beginning of XADD's doc page:

The creation of stream's key can be disabled with the NOMKSTREAM option.

Please feel free to improve the docs by contributing to https://github.com/redis/redis-doc

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