Reputation: 3254
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?
Upvotes: 1
Views: 506
Reputation: 49942
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
Upvotes: 0
Reputation: 22906
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.
Upvotes: 1