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

Distributed Cache should be fault tolerant #762

Closed
hikalkan opened this issue Jan 27, 2019 · 0 comments
Closed

Distributed Cache should be fault tolerant #762

hikalkan opened this issue Jan 27, 2019 · 0 comments
Assignees
Milestone

Comments

@hikalkan
Copy link
Member

Example scenario: We use redis cache and the cache server is not ready when our service/application starts (this is a common scenario for a containerized microservice solution) or the cache server may temporary goes down. In such cases, our application should continue without cache since caching is an optimization in many cases rather than an essential element in our system.

So, we will have three developments:

  • Make a configuration named DistributedCacheOptions which includes a boolean named HideErrors to throw or hide exceptions for the distributed cache. Default value: true.
  • Add hideErrors boolean? (nullable) to every method of IDistributedCache<TCacheItem>. Default value is null and gets the value from the configuration if it's null.
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