redisredis-streams

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?


Solution

  • 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.