Polish "Align with breaking API changes in RedisCacheManager"

Closes gh-9734
pull/9771/head
Stephane Nicoll 7 years ago
parent d22cd0cc9e
commit 9df0992bd9

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

@ -283,9 +283,9 @@ public class CacheAutoConfigurationTests {
RedisCacheManager cacheManager = validateCacheManager(context, RedisCacheManager cacheManager = validateCacheManager(context,
RedisCacheManager.class); RedisCacheManager.class);
assertThat(cacheManager.getCacheNames()).isEmpty(); assertThat(cacheManager.getCacheNames()).isEmpty();
org.springframework.data.redis.cache.RedisCacheConfiguration configuration = (org.springframework.data.redis.cache.RedisCacheConfiguration) new DirectFieldAccessor( assertThat(((org.springframework.data.redis.cache.RedisCacheConfiguration)
cacheManager).getPropertyValue("defaultCacheConfig"); new DirectFieldAccessor(cacheManager).getPropertyValue(
assertThat(configuration.usePrefix()).isTrue(); "defaultCacheConfig")).usePrefix()).isTrue();
}); });
} }

Loading…
Cancel
Save