Skip to content

Commit

Permalink
test: CICD 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
nohy6630 committed May 6, 2024
1 parent 9c031bc commit ad30dcf
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
@Configuration
@RequiredArgsConstructor
public class RedisConfig {
@Value("${data.redis.host}")
private String host;

@Value("${data.redis.port}")
private int port;

@Bean
public RedisConnectionFactory redisConnectionFactory() {
return new LettuceConnectionFactory(host, port);
}

@Bean
public RedisTemplate<String, Object> redisTemplate() {
RedisTemplate<String, Object> redisTemplate = new RedisTemplate<>();
redisTemplate.setConnectionFactory(redisConnectionFactory());
return redisTemplate;
}
// @Value("${data.redis.host}")
// private String host;
//
// @Value("${data.redis.port}")
// private int port;
//
// @Bean
// public RedisConnectionFactory redisConnectionFactory() {
// return new LettuceConnectionFactory(host, port);
// }
//
// @Bean
// public RedisTemplate<String, Object> redisTemplate() {
// RedisTemplate<String, Object> redisTemplate = new RedisTemplate<>();
// redisTemplate.setConnectionFactory(redisConnectionFactory());
// return redisTemplate;
// }
}

0 comments on commit ad30dcf

Please sign in to comment.