Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
#29 대용량 트래픽 게시글 검색시 캐싱 적용
Browse files Browse the repository at this point in the history
- 레디스 기본 만료시간 설정명 변경
- 레디스 주석 내용 변경
  • Loading branch information
junshock5 committed Aug 24, 2020
1 parent b844041 commit d41b406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/market/server/config/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class RedisConfig {
@Value("${spring.redis.password}")
private String redisPwd;

@Value("${expire.default}")
@Value("${expire.defaultTime}")
private long defaultExpireSecond;

/*
Expand Down Expand Up @@ -63,8 +63,6 @@ public ObjectMapper objectMapper() {
* 2. Lettuce - Netty 기반 redis client library
* - 비동기로 요청하기 때문에 Jedis에 비해 높은 성능을 가지고 있다.
* - TPS, 자원사용량 모두 Jedis에 비해 우수한 성능을 보인다는 테스트 사례가 있다.
*
* Jedis와 Lettuce의 성능 비교 https://jojoldu.tistory.com/418
*/
@Bean
public RedisConnectionFactory redisConnectionFactory() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spring.redis.password=
spring.data.redis.repositories.enabled=false

# expire
expire.default=36288000
expire.defaultTime=36288000

# tomcat
server.port=8888

0 comments on commit d41b406

Please sign in to comment.