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
Increment and Decrement with :initial => nil doesn't return nil on missing key. #112
Comments
Sorry, I guess I never saw this issue. What's the use case for this functionality? Why would you want to create a nil counter? |
instead we want to do:
so the resource intensive operation is performed only once during the lifetime of the service. |
Fair enough. Can you send a pull request please and be sure to update History.md with a line to give yourself credit. |
lawrencepit
added a commit
to lawrencepit/dalli
that referenced
this issue
Mar 30, 2012
… doesn't return nil on missing key.
See #189 |
mperham
added a commit
that referenced
this issue
Mar 30, 2012
Issue #112 Increment and Decrement with :initial => nil should return nil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is somewhat related to issue #68.
When calling increment or decrement with the option :initial => nil, then on a missing key it will not return nil, but the increment amount.
The text was updated successfully, but these errors were encountered: