From 2378fa40235487eb9dff0c7a740da69d76834c29 Mon Sep 17 00:00:00 2001 From: mcodnjs Date: Tue, 30 Jan 2024 20:36:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20empty=5Fmarker=20=ED=83=80=EC=9E=85=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/hanglog/like/domain/LikeRedisConstants.java | 2 +- .../src/main/java/hanglog/like/service/LikeSyncScheduler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/hanglog/like/domain/LikeRedisConstants.java b/backend/src/main/java/hanglog/like/domain/LikeRedisConstants.java index 929d2befa..695b8e163 100644 --- a/backend/src/main/java/hanglog/like/domain/LikeRedisConstants.java +++ b/backend/src/main/java/hanglog/like/domain/LikeRedisConstants.java @@ -7,7 +7,7 @@ public class LikeRedisConstants { public static final String LIKE_KEY_PREFIX = "like:"; public static final String WILD_CARD = "*"; public static final String KEY_SEPARATOR = ":"; - public static final String EMPTY_MARKER = "empty"; + public static final Long EMPTY_MARKER = -1L; public static final Duration LIKE_TTL = Duration.ofMinutes(90L); public static String generateLikeKey(final Long tripId) { diff --git a/backend/src/main/java/hanglog/like/service/LikeSyncScheduler.java b/backend/src/main/java/hanglog/like/service/LikeSyncScheduler.java index 687b91d92..2a4a81eba 100644 --- a/backend/src/main/java/hanglog/like/service/LikeSyncScheduler.java +++ b/backend/src/main/java/hanglog/like/service/LikeSyncScheduler.java @@ -1,8 +1,8 @@ package hanglog.like.service; import static hanglog.like.domain.LikeRedisConstants.EMPTY_MARKER; -import static hanglog.like.domain.LikeRedisConstants.LIKE_KEY_PREFIX; import static hanglog.like.domain.LikeRedisConstants.KEY_SEPARATOR; +import static hanglog.like.domain.LikeRedisConstants.LIKE_KEY_PREFIX; import static hanglog.like.domain.LikeRedisConstants.WILD_CARD; import static hanglog.like.domain.LikeRedisConstants.generateLikeKey;