Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the NOMKSTREAM option for XADD #375

Merged
merged 4 commits into from
May 12, 2024

Conversation

Jahaja
Copy link
Contributor

@Jahaja Jahaja commented May 10, 2024

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.

@alicebob
Copy link
Owner

Thanks! I'll have a look soon.

@alicebob alicebob merged commit 890a1c8 into alicebob:master May 12, 2024
4 checks passed
@alicebob
Copy link
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants