miniredis icon indicating copy to clipboard operation
miniredis copied to clipboard

Support for the NOMKSTREAM option for XADD

Open Jahaja opened this issue 1 year ago • 1 comments

Hi! First of all, thanks for a very useful library.

This adds support for the NOMKSTREAM option for XADD as specified by https://redis.io/docs/latest/commands/xadd/

XADD key [NOMKSTREAM] [<MAXLEN | MINID> [= | ~] threshold [LIMIT count]] <* | id> field value [field value ...]

What the option does:

If the key does not exist, as a side effect of running this command the key is created with a stream value. The creation of stream's key can be disabled with the NOMKSTREAM option.

And the response when the option is provided:

Nil reply: if the NOMKSTREAM option is given and the key doesn't exist.

Jahaja avatar May 10 '24 20:05 Jahaja

Thanks! I'll have a look soon.

alicebob avatar May 10 '24 20:05 alicebob

thanks!

alicebob avatar May 12 '24 07:05 alicebob