- Notifications
You must be signed in to change notification settings - Fork22.1k
Add :expires_in option support for RedisCacheStore increment/decrement method#33254
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
rails-bot commentedJun 29, 2018
Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from@kamipo (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. This repository is being automatically checked for code quality issues usingCode Climate. You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a Pull Request is considered ready to review. Please seethe contribution instructions for more information. |
72cb3c9 to9d5b02eCompareFirstly, increment and decrement shouldn't care about the particulars ofkey expiry. They should only know that they have to pass that responsibilityon to somewhere else.Secondly, it moves the key normalization back inside the instrumentation likeit was originally. I think that matches the original design intention or atthe very least it lets users catch haywire key truncation.Thirdly, it moves the changelog entry to the top of the file, where new entriesgo. I couldn't understand what the entry was saying so I tried to rewrite it.
Uh oh!
There was an error while loading.Please reload this page.
Redis not support
incrywith expire option, so callexpire.This fix is keep same behavior with the
:memcachedstore.