Skip to content

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

@tafs7

Description

@tafs7

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions