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

Cache should handle cache provder failures for Get method and use factory method to return the requested item. #2182

Closed
aidanmorgan opened this issue Jun 2, 2017 · 1 comment
Milestone

Comments

@aidanmorgan
Copy link

aidanmorgan commented Jun 2, 2017

I am using the AbpRedisCache to provide caching for frequently used data in my application and recently hit an upper memory limit of my Redis cache.

The exception coming from the Redis layer bubbled out of the cache and aborted every request coming from my users.

I had assumed that the ABP cache wrapper would have caught the exception from the underlying store and just used the factory method to access the database directly (effectively resulting in there being no cache layer).

Is there a way to change the default behaviour, or am I better off writing my own extension methods to provide this behaviour?

@hikalkan
Copy link
Member

hikalkan commented Jun 2, 2017

Currently there is not way of that. But I believe that can be a good improvement for the next version. I will implement this. Thanks.

@hikalkan hikalkan added this to the v2.1 milestone Jun 2, 2017
@hikalkan hikalkan changed the title Cache does not handle exception of backing-cache Cache should handle cache provder failures for Get method and use factory method to return the requested item. Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants