Skip to content

Commit

Permalink
test: 메모리 상세 페이지 캐시 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
jemin committed Dec 27, 2023
1 parent 0104aab commit 9583114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
Expand Down Expand Up @@ -45,7 +46,7 @@ public class MemoryService {
메모리 상세 정보 조회
TODO : 각 reader들이 MSA 상에서 client 통신을 통해 데이터를 조회하고, 복잡한 전시 서비스라 생각하고 캐시를 설계해보자
*/
// @Cacheable(cacheNames = CacheNames.DETAIL_MEMORY, key = "#memoryId")
@Cacheable(cacheNames = CacheNames.DETAIL_MEMORY, key = "#memoryId")
public MemoryResponseDto getMemory(final Long memoryId) {

Memory memory = memoryReader.read(memoryId);
Expand Down
2 changes: 1 addition & 1 deletion lib
Submodule lib updated from 92576a to c272f0

0 comments on commit 9583114

Please sign in to comment.