Skip to content

Commit

Permalink
test: 테스트를 위한 캐시 재등록
Browse files Browse the repository at this point in the history
  • Loading branch information
jemin committed Dec 13, 2023
1 parent 763dca0 commit 389cf45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmc.mellyserver.domain.memory;

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 @@ -31,7 +32,7 @@ public class MemoryService {
/*
메모리 상세 정보 조회
*/
// @Cacheable(cacheNames = CacheNames.MEMORY, key = "#memoryId")
@Cacheable(cacheNames = CacheNames.MEMORY, key = "#memoryId")
public MemoryResponseDto getMemory(final Long memoryId) {
return memoryReader.getMemory(memoryId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ public MemoryListResponse findGroupMemoriesById(Long lastId, Pageable pageable,
List<Memory> result = query
.select(memory)
.from(memory)
.leftJoin(place).on(place.id.eq(memory.placeId)).fetchJoin()
.leftJoin(userGroup).on(userGroup.id.eq(memory.groupId)).fetchJoin()
.leftJoin(memoryImage).on(memoryImage.memory.id.eq(memory.id))
.where(
ltMemoryId(lastId), // 커서 페이징
Expand Down
2 changes: 1 addition & 1 deletion lib
Submodule lib updated from a13043 to f66aa8
2 changes: 1 addition & 1 deletion storage/db-core/src/main/resources/db-core.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spring:
jpa:
hibernate:
ddl-auto: create-drop
ddl-auto: none
properties:
hibernate:
show_sql: true
Expand Down

0 comments on commit 389cf45

Please sign in to comment.