Skip to content

Commit

Permalink
#578 [feat] 캐시 삭제시 메시지 포맷 단순화
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyundoh committed Nov 17, 2024
1 parent 65b20cd commit c0820be
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions module-domain/src/main/java/com/mile/common/CacheService.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.mile.common;

import com.mile.slack.module.SendMessageModule;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.CacheManager;
import org.springframework.stereotype.Service;
Expand All @@ -11,10 +10,8 @@ public class CacheService {

private final String MOIM_CACHE_NAME = "moimPopularInfo";
private final CacheManager cacheManager;
private final SendMessageModule sendMessageModule;

public void deleteMoimCache() {
sendMessageModule.sendMessage("INTERNAL API 호출) 글모임 별 인기 글/ 작가에 대한 캐시 삭제 완료");
if (cacheManager.getCache(MOIM_CACHE_NAME) != null) {
cacheManager.getCache(MOIM_CACHE_NAME).clear();
}
Expand Down

0 comments on commit c0820be

Please sign in to comment.