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

How to bypass the cache if provider server is down and cache throws exception? #6

Open
tafs7 opened this issue Feb 9, 2017 · 3 comments

Comments

@tafs7
Copy link

tafs7 commented Feb 9, 2017

Is there a way to bypass the cache when the underlying cache provider is down? For example, using a remote Redis cache, if the server is not available, a call to the cache will throw an exception, which will bubble up to the caller of the DB code.

Is there a hook or a customization that we can put in place that bypasses the cache altogether on exception, so that caller doesn't have to know there was a transient error, but we can still log the exception for ops monitoring?
thanks!

@moozzyk
Copy link
Owner

moozzyk commented Feb 10, 2017

I guess the question is where it is supposed to be implemented/configured. Should EFCache always catch exceptions from cache provider and do the full read or is it on the provider to handle this kind of situations.

@tony-asu
Copy link

How would you feel about setting for The number of seconds to wait after an exception before trying the cache again?

@moozzyk
Copy link
Owner

moozzyk commented Jul 23, 2024

At this point I am not planning on implementing any changes in this library except for fixing security issues.

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

No branches or pull requests

3 participants