@Configuration
@ConditionalOnClass(value={org.springframework.data.redis.core.StringRedisTemplate.class,com.fasterxml.jackson.databind.ObjectMapper.class})
public class CommandCacheAutoConfiguration
extends Object
| Constructor and Description |
|---|
CommandCacheAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CommandCache |
commandCache(org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate,
CommandProperties commandProperties) |
CommandCacheInterceptor |
commandCacheInterceptor(CommandProperties commandProperties,
CommandCache commandCache,
CommandCacheMapper commandCacheMapper) |
CommandCacheMapper |
commandCacheMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
@Bean @ConditionalOnClass(value=org.springframework.data.redis.core.StringRedisTemplate.class) @ConditionalOnMissingBean public CommandCache commandCache(@Autowired org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate, @Autowired CommandProperties commandProperties)
@Bean @ConditionalOnClass(value=com.fasterxml.jackson.databind.ObjectMapper.class) @ConditionalOnMissingBean public CommandCacheMapper commandCacheMapper(@Autowired com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean public CommandCacheInterceptor commandCacheInterceptor(@Autowired CommandProperties commandProperties, @Autowired(required=false) CommandCache commandCache, @Autowired(required=false) CommandCacheMapper commandCacheMapper)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.