Cache provider related exceptions handling
This commit adds the necessary infrastructure to handle exceptions thrown by a cache provider in both Spring's and JCache's caching abstractions. Both interceptors can be configured with a CacheErrorHandler that defines several callbacks on typical cache operations. In particular, handleCacheGetError can be implemented in such a way that an exception thrown by the provider is handled as a cache miss by the caching abstraction. The handler can be configured with both CachingConfigurer and the XML namespace (error-handler property) Issue: SPR-9275
This commit is contained in:
@@ -47196,6 +47196,17 @@ application through AOP. The configuration is intentionally similar with that of
|
||||
| Name of cache manager to use. Only required if the name of the cache manager is not
|
||||
`cacheManager`.
|
||||
|
||||
| `key-generator`
|
||||
| N/A (See `CachingConfigurer` javadocs)
|
||||
| `SimpleKeyGenerator`
|
||||
| Name of the custom key generator to use.
|
||||
|
||||
| `error-handler`
|
||||
| N/A (See `CachingConfigurer` javadocs)
|
||||
| `SimpleCacheErrorHandler`
|
||||
| Name of the custom cache error handler to use. By default, any exception throw during
|
||||
a cache related operations are thrown back at the client.
|
||||
|
||||
| `mode`
|
||||
| `mode`
|
||||
| proxy
|
||||
|
||||
Reference in New Issue
Block a user