org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers Java Examples
The following examples show how to use
org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedisCacheAutoConfiguration.java From faster-framework-project with Apache License 2.0 | 6 votes |
/** * 管理缓存 * * @return */ @Bean public CacheManager redisCacheManager(RedisConnectionFactory redisConnectionFactory, RedisGenericCacheProcessor redisGenericCacheProcessor, ObjectMapper objectMapper, CacheProperties cacheProperties, CacheManagerCustomizers customizerInvoker, ResourceLoader resourceLoader ) { RedisGenericCacheManager redisGenericCacheManager = new RedisGenericCacheManager(RedisCacheWriter.nonLockingRedisCacheWriter(redisConnectionFactory), determineConfiguration(resourceLoader.getClassLoader(), cacheProperties)); redisGenericCacheManager.setCacheProperties(cacheProperties); redisGenericCacheManager.setGenericCacheMap(redisGenericCacheProcessor.getGenericCacheMap()); redisGenericCacheManager.setObjectMapper(objectMapper); return customizerInvoker.customize(redisGenericCacheManager); }
Example #2
Source File: MicaRedisCacheAutoConfiguration.java From mica with GNU Lesser General Public License v3.0 | 5 votes |
MicaRedisCacheAutoConfiguration(RedisSerializer<Object> redisSerializer, CacheProperties cacheProperties, CacheManagerCustomizers customizerInvoker, ObjectProvider<RedisCacheConfiguration> redisCacheConfiguration) { this.redisSerializer = redisSerializer; this.cacheProperties = cacheProperties; this.customizerInvoker = customizerInvoker; this.redisCacheConfiguration = redisCacheConfiguration.getIfAvailable(); }
Example #3
Source File: RedisCacheAutoConfiguration.java From black-shop with Apache License 2.0 | 5 votes |
RedisCacheAutoConfiguration(CacheProperties cacheProperties, CacheManagerCustomizers customizerInvoker, ObjectProvider<RedisCacheConfiguration> redisCacheConfiguration) { this.cacheProperties = cacheProperties; this.customizerInvoker = customizerInvoker; this.redisCacheConfiguration = redisCacheConfiguration.getIfAvailable(); }
Example #4
Source File: CachingProviderAutoConfiguration.java From spring-boot-data-geode with Apache License 2.0 | 5 votes |
CachingProviderAutoConfiguration( @Autowired(required = false) CacheProperties cacheProperties, @Autowired(required = false) CacheManagerCustomizers cacheManagerCustomizers) { this.cacheProperties = cacheProperties; this.cacheManagerCustomizers = cacheManagerCustomizers; }
Example #5
Source File: RedisCacheManagerConfig.java From mica with GNU Lesser General Public License v3.0 | 4 votes |
@Bean public CacheManagerCustomizers cacheManagerCustomizers( ObjectProvider<List<CacheManagerCustomizer<?>>> customizers) { return new CacheManagerCustomizers(customizers.getIfAvailable()); }
Example #6
Source File: RedisConfig.java From spring-microservice-exam with MIT License | 4 votes |
@Bean public CacheManagerCustomizers cacheManagerCustomizers( ObjectProvider<List<CacheManagerCustomizer<?>>> customizers) { return new CacheManagerCustomizers(customizers.getIfAvailable()); }
Example #7
Source File: RedisCacheManagerConfig.java From black-shop with Apache License 2.0 | 4 votes |
@Bean public CacheManagerCustomizers cacheManagerCustomizers( ObjectProvider<List<CacheManagerCustomizer<?>>> customizers) { return new CacheManagerCustomizers(customizers.getIfAvailable()); }
Example #8
Source File: MultiCacheAutoConfig.java From gateway-helper with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean public CacheManagerCustomizers cacheManagerCustomizers( ObjectProvider<List<CacheManagerCustomizer<?>>> customizers) { return new CacheManagerCustomizers(customizers.getIfAvailable()); }
Example #9
Source File: MultiCacheAutoConfig.java From gateway-helper with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(L2CacheManager.class) public L2CacheManager cacheManager(RedisConnectionFactory connectionFactory, CacheManagerCustomizers customizerInvoker) { return customizerInvoker.customize(new RedisL2CacheManager(connectionFactory)); }
Example #10
Source File: RedisCacheAutoConfiguration.java From faster-framework-project with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean public CacheManagerCustomizers cacheManagerCustomizers( ObjectProvider<List<CacheManagerCustomizer<?>>> customizers) { return new CacheManagerCustomizers(customizers.getIfAvailable()); }
Example #11
Source File: MultiCacheAutoConfig.java From api-gateway-old with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean public CacheManagerCustomizers cacheManagerCustomizers( ObjectProvider<List<CacheManagerCustomizer<?>>> customizers) { return new CacheManagerCustomizers(customizers.getIfAvailable()); }
Example #12
Source File: MultiCacheAutoConfig.java From api-gateway-old with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(L2CacheManager.class) public L2CacheManager cacheManager(RedisConnectionFactory connectionFactory, CacheManagerCustomizers customizerInvoker) { return customizerInvoker.customize(new RedisL2CacheManager(connectionFactory)); }
Example #13
Source File: CachingProviderAutoConfiguration.java From spring-boot-data-geode with Apache License 2.0 | 4 votes |
Optional<CacheManagerCustomizers> getCacheManagerCustomizers() { return Optional.ofNullable(this.cacheManagerCustomizers); }