@Configuration public class ProjectMemoryCacheAutoConfiguration extends Object
| 构造器和说明 |
|---|
ProjectMemoryCacheAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
DefaultMemoryCacheOperator |
defaultMemoryCacheOperator()
创建默认的value是object类型的内存缓存
|
DefaultStringMemoryCacheOperator |
defaultStringCacheOperator()
创建默认的value是string类型的内存缓存
|
@Bean @ConditionalOnMissingBean(name="defaultStringCacheOperator") public DefaultStringMemoryCacheOperator defaultStringCacheOperator()
@Bean @ConditionalOnMissingBean(name="defaultMemoryCacheOperator") public DefaultMemoryCacheOperator defaultMemoryCacheOperator()
Copyright © 2024. All rights reserved.