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

Unmatched Cache Library get() return null #1895

Merged
merged 9 commits into from
Apr 3, 2019

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented Mar 29, 2019

Description
Currently there is no way to distinguish between returns of a cached value false and "no matching key". This changes each handler to return null when a key isn't found.
Fixes #1870

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@MGatner
Copy link
Member Author

MGatner commented Mar 30, 2019

Looks like I messed up the reference to the class constant for Memcached result-not-found. I’m on the road today and tomorrow but can fix it after that - if anyone else wants to look into it I think it is a small change.

@MGatner
Copy link
Member Author

MGatner commented Apr 2, 2019

I think this is finally ready!

@lonnieezell
Copy link
Member

Looks good. Merging.

@lonnieezell lonnieezell merged commit 753d290 into codeigniter4:develop Apr 3, 2019
@MGatner MGatner deleted the cache-get-return-null branch April 3, 2019 11:56
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

Successfully merging this pull request may close these issues.

2 participants