|
|
|
@ -57,7 +57,8 @@ class RedisCacheConfiguration {
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
public RedisCacheManager cacheManager(RedisConnectionFactory redisConnectionFactory) {
|
|
|
|
|
RedisCacheManagerBuilder builder = RedisCacheManager.builder(redisConnectionFactory);
|
|
|
|
|
RedisCacheManagerBuilder builder = RedisCacheManager
|
|
|
|
|
.builder(redisConnectionFactory);
|
|
|
|
|
List<String> cacheNames = this.cacheProperties.getCacheNames();
|
|
|
|
|
if (!cacheNames.isEmpty()) {
|
|
|
|
|
builder.initialCacheNames(new LinkedHashSet<>(cacheNames));
|
|
|
|
|