RamPrakash
RamPrakash

Reputation: 3254

Redis Stream NOMKSTREAM

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

Answers (2)

Itamar Haber
Itamar Haber

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

for_stack
for_stack

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

Related Questions