Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: DB Replication, Redis 관련 설정 제거 #754

Merged
merged 6 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'

// Redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-cache:2.5.4'

// Security
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import com.woowacourse.zzimkkong.repository.MapRepository;
import com.woowacourse.zzimkkong.repository.MemberRepository;
import com.woowacourse.zzimkkong.repository.ReservationRepository;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

Expand Down Expand Up @@ -86,9 +84,6 @@ public MapFindAllResponse findAllMaps(final LoginEmailDto loginEmailDto) {
.collect(collectingAndThen(toList(), mapFindResponses -> MapFindAllResponse.of(mapFindResponses, manager)));
}

@Cacheable(key = "#sharingMapId",
value = "map",
unless = "#result == null")
@Transactional(readOnly = true)
public MapFindResponse findMapBySharingId(final String sharingMapId) {
Long mapId = sharingIdGenerator.parseIdFrom(sharingMapId);
Expand All @@ -97,8 +92,6 @@ public MapFindResponse findMapBySharingId(final String sharingMapId) {
return MapFindResponse.of(map, sharingIdGenerator.from(map));
}

@CacheEvict(value = "map",
allEntries = true)
public void updateMap(final Long mapId,
final MapCreateUpdateRequest mapCreateUpdateRequest,
final LoginEmailDto loginEmailDto) {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/config