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

redis zadd NX CH #7

Open
nooperpudd opened this issue May 15, 2018 · 0 comments
Open

redis zadd NX CH #7

nooperpudd opened this issue May 15, 2018 · 0 comments

Comments

@nooperpudd
Copy link
Owner

nooperpudd commented May 15, 2018

XX: Only update elements that already exist. Never add elements.
NX: Don't update already existing elements. Always add new elements.
CH: Modify the return value from the number of new elements added, to the total number of elements changed (CH is an abbreviation of changed). Changed elements are new elements added and elements already existing for which the score was updated. So elements specified in the command line having the same score as they had in the past are not counted. Note: normally the return value of ZADD only counts the number of new elements added.

@nooperpudd nooperpudd changed the title redis NX CH redis zadd NX CH May 15, 2018
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

No branches or pull requests

1 participant