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

Add :default option to the incr/3 callback #92

Closed
cabol opened this issue Dec 26, 2020 · 0 comments
Closed

Add :default option to the incr/3 callback #92

cabol opened this issue Dec 26, 2020 · 0 comments

Comments

@cabol
Copy link
Owner

cabol commented Dec 26, 2020

Currently, if incr is invoked and the key does not exist, by default 0 is inserted before to perform the increment behind scenes. So the idea is to add :default option to the incr/3 callback so that the default value is set in case the key does not and exist and before it is incremented.

cabol added a commit that referenced this issue Dec 26, 2020
cabol added a commit that referenced this issue Dec 26, 2020
@cabol cabol closed this as completed Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant