use of org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory in project pivotal-cla by pivotalsoftware.
the class SessionConfig method redisConnectionFactory.
@Bean
@ConditionalOnMissingBean(RedisConnectionFactory.class)
public RedisConnectionFactory redisConnectionFactory(RedisProperties redisProperties) {
LettuceConnectionFactory connectionFactory = new LettuceConnectionFactory();
connectionFactory.setPort(redisProperties.getPort());
connectionFactory.setHostName(redisProperties.getHost());
connectionFactory.setPassword(redisProperties.getPassword());
connectionFactory.setShutdownTimeout(0);
return connectionFactory;
}
use of org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory in project cu-kfs by CU-CommunityApps.
the class CacheConfiguration method connectionFactory.
@Bean
public RedisConnectionFactory connectionFactory(@Value("${redis.auth.token.password}") String redisAuthTokenPassword, @Value("${redis.host}") String redisHost, @Value("${redis.port}") int redisPort, @Value("${redis.use.ssl}") boolean redisUseSsl) {
final LettuceConnectionFactory lettuceConnectionFactory = new LettuceConnectionFactory(redisHost, redisPort);
lettuceConnectionFactory.setUseSsl(redisUseSsl);
lettuceConnectionFactory.setPassword(redisAuthTokenPassword);
return lettuceConnectionFactory;
}
Aggregations