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 counters support – increments and decrements by a given amount #3

Closed
cabol opened this issue Aug 17, 2017 · 0 comments
Closed
Labels

Comments

@cabol
Copy link
Owner

cabol commented Aug 17, 2017

Create a callback update_counter in Nebulex.Cache, in order to handle both scenarios, increments and decrements, depending on the incr value, which can me positive or negative. In case incr is not a valid integer value, it should raise an ArgumentError exception.

@callback update_counter(key, incr :: integer, opts) :: value | no_return

By default incr might be 1.

@cabol cabol added the feature label Aug 17, 2017
@cabol cabol changed the title Implement analogous functions to Redis incrby and decrby Add counters support – increments and decrements by a given amount Aug 23, 2017
@cabol cabol closed this as completed Aug 23, 2017
@cabol cabol reopened this Aug 25, 2017
@cabol cabol closed this as completed Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant