@Configuration public class ProxyCachingConfiguration extends AbstractCachingConfiguration
@Configuration
class that registers the Spring infrastructure beans necessary
to enable proxy-based annotation-driven cache management.EnableCaching
,
CachingConfigurationSelector
cacheManager, enableCaching, keyGenerator
Constructor and Description |
---|
ProxyCachingConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanFactoryCacheOperationSourceAdvisor |
cacheAdvisor() |
CacheInterceptor |
cacheInterceptor() |
CacheOperationSource |
cacheOperationSource() |
reconcileCacheManager, setImportMetadata
@Bean(name="org.springframework.cache.config.internalCacheAdvisor") @Role(value=2) public BeanFactoryCacheOperationSourceAdvisor cacheAdvisor()
@Bean @Role(value=2) public CacheOperationSource cacheOperationSource()
@Bean @Role(value=2) public CacheInterceptor cacheInterceptor()