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
I would like to suggest that the Spring framework provide another CacheErrorHandler Implementation.
Whenever I build a spring application that uses an external cache, I do write a class that implements CacheErrorHandler for just error logging rather than throwing an exception.
Maybe most developers don't want to fail a method invocation when the cache is not available because the original method can return results.
So, If Spring provides another CacheErrorHandler implementation for just logging, will be very convinient.
Thank you!
The text was updated successfully, but these errors were encountered:
snicoll
changed the title
Add another CacheErrorHandler implementation
Add CacheErrorHAndler implementation that logs exceptions rather than rethrowing them
Dec 9, 2021
snicoll
changed the title
Add CacheErrorHAndler implementation that logs exceptions rather than rethrowing them
Add CacheErrorHandler implementation that logs exceptions rather than rethrowing them
Dec 9, 2021
I think that this is why we have org.springframework.cache.annotation.CachingConfigurer mechanism. But the implementation could be done, but the question is which logging level to use? Should it be configurable or not?
Hello.
I would like to suggest that the Spring framework provide another
CacheErrorHandler
Implementation.Whenever I build a spring application that uses an external cache, I do write a class that implements CacheErrorHandler for just error logging rather than throwing an exception.
Maybe most developers don't want to fail a method invocation when the cache is not available because the original method can return results.
So, If Spring provides another CacheErrorHandler implementation for just logging, will be very convinient.
Thank you!
The text was updated successfully, but these errors were encountered: