You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
DistributedCacheOptions
which includes a boolean namedHideErrors
to throw or hide exceptions for the distributed cache. Default value:true
.hideErrors
boolean? (nullable) to every method ofIDistributedCache<TCacheItem>
. Default value is null and gets the value from the configuration if it's null.The text was updated successfully, but these errors were encountered: