@Configuration
@ConfigurationProperties(prefix="spacex.cache")
@EnableCaching
@ConditionalOnProperty(name="spacex.cache.enable",
havingValue="true",
matchIfMissing=true)
public class CacheConfig
extends org.springframework.cache.annotation.CachingConfigurerSupport
| 构造器和说明 |
|---|
CacheConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
CacheBeanPostProcessor |
cacheBeanPostProcessor() |
org.springframework.cache.CacheManager |
cacheManager() |
org.springframework.cache.interceptor.KeyGenerator |
keyGenerator() |
public org.springframework.cache.interceptor.KeyGenerator keyGenerator()
keyGenerator 在接口中 org.springframework.cache.annotation.CachingConfigurerkeyGenerator 在类中 org.springframework.cache.annotation.CachingConfigurerSupport@Bean public org.springframework.cache.CacheManager cacheManager()
cacheManager 在接口中 org.springframework.cache.annotation.CachingConfigurercacheManager 在类中 org.springframework.cache.annotation.CachingConfigurerSupport@Bean public CacheBeanPostProcessor cacheBeanPostProcessor()
Copyright © 2019. All rights reserved.