Skip to content

Commit

Permalink
#194 [feat] rest template 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
KWY0218 committed Jan 26, 2024
1 parent d61cc1f commit e5b440f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/com/moddy/server/config/redis/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,4 @@ public class RedisConfig {
public RedisConnectionFactory redisConnectionFactory() {
return new LettuceConnectionFactory(host, port);
}

@Bean
@Primary
public RedisTemplate<String, String> getRedisTemplate() {
RedisTemplate<String, String> redisTemplate = new RedisTemplate<>();
redisTemplate.setConnectionFactory(redisConnectionFactory());
redisTemplate.setKeySerializer(new StringRedisSerializer());
redisTemplate.setValueSerializer(new StringRedisSerializer());
return redisTemplate;
}
}

0 comments on commit e5b440f

Please sign in to comment.