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

Commit

Permalink
#29 게시글 검색시 @Cacheable을 사용하여 RedisCache 적용
Browse files Browse the repository at this point in the history
- redis.config에 시스템 설정 명 변경
  • Loading branch information
junshock5 committed Aug 27, 2020
1 parent d41b406 commit 6e543cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/market/server/config/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

@Configuration
public class RedisConfig {
@Value("${spring.redis.host}")
@Value("${market.server.redis.host}")
private String redisHost;

@Value("${spring.redis.port}")
@Value("${market.server.redis.port}")
private int redisPort;

@Value("${spring.redis.password}")
@Value("${market.server.redis.password}")
private String redisPwd;

@Value("${expire.defaultTime}")
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ spring.messages.encoding=UTF-8

# redis
spring.cache.type=redis
spring.redis.host=localhost
spring.redis.port=6379
spring.redis.password=
spring.data.redis.repositories.enabled=false
spring.data.redis.repositories.enabled=true
market.server.redis.host=localhost
market.server.redis.port=6379
market.server.redis.password=

# expire
expire.defaultTime=36288000
Expand Down

0 comments on commit 6e543cd

Please sign in to comment.