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 generateOnGetError option #137

Closed
hueniverse opened this issue Aug 9, 2015 · 0 comments
Closed

Add generateOnGetError option #137

hueniverse opened this issue Aug 9, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@hueniverse
Copy link
Member

@hueniverse hueniverse commented Aug 9, 2015

When using a generate function and the initial get() fails due to a cache error, setting to false will return the error and avoid generating a new item (that is likely not going to make it to the cache as well). This is useful when the cache is used to optimize an otherwise too slow process (and that errors should be handled by the developer and not ignored).

@hueniverse hueniverse added the feature label Aug 9, 2015
@hueniverse hueniverse self-assigned this Aug 9, 2015
@hueniverse hueniverse added this to the 5.0.0 milestone Aug 9, 2015
@hueniverse hueniverse closed this in 05f8d60 Aug 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.