CachingConfigurer with empty methods allowing
subclasses to override only the methods they're interested in.
CachingConfigurer
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CacheManager | cacheManager()
Overrides default org. |
| public CacheResolver | cacheResolver()
Overrides default org. CacheResolver bean to use to resolve regular caches for
annotation-driven cache management.
|
| public CacheErrorHandler | errorHandler()
Overrides default org. CacheErrorHandler to use to handle cache-related errors.
|
| public KeyGenerator | keyGenerator()
Overrides default org. |
| CachingConfigurerSupport | back to summary |
|---|---|
| public CachingConfigurerSupport() | |
| cacheManager | back to summary |
|---|---|
| public CacheManager cacheManager() Overrides default org. Doc from org. Return the cache manager bean to use for annotation-driven cache
management. A default Implementations must explicitly declare
@Configuration
@EnableCaching
public class AppConfig implements CachingConfigurer {
@Bean // important!
@Override
public CacheManager cacheManager() {
// configure and return CacheManager instance
}
// ...
}
See @EnableCaching for more complete examples.
| |
| cacheResolver | back to summary |
|---|---|
| public CacheResolver cacheResolver() Overrides default org. Doc from org. Return the If both a Implementations must explicitly declare
@Configuration
@EnableCaching
public class AppConfig implements CachingConfigurer {
@Bean // important!
@Override
public CacheResolver cacheResolver() {
// configure and return CacheResolver instance
}
// ...
}
See EnableCaching for more complete examples.
| |
| errorHandler | back to summary |
|---|---|
| public CacheErrorHandler errorHandler() Overrides default org. Doc from org. Return the By default, Implementations must explicitly declare
@Configuration
@EnableCaching
public class AppConfig implements CachingConfigurer {
@Bean // important!
@Override
public CacheErrorHandler errorHandler() {
// configure and return CacheErrorHandler instance
}
// ...
}
See @EnableCaching for more complete examples.
| |
| keyGenerator | back to summary |
|---|---|
| public KeyGenerator keyGenerator() Overrides default org. Doc from org. Return the key generator bean to use for annotation-driven cache management.
Implementations must explicitly declare
@Configuration
@EnableCaching
public class AppConfig implements CachingConfigurer {
@Bean // important!
@Override
public KeyGenerator keyGenerator() {
// configure and return KeyGenerator instance
}
// ...
}
See @EnableCaching for more complete examples.
| |