From e1c4f7a613edf802fcfe4ea2946ba2b2a963a866 Mon Sep 17 00:00:00 2001 From: LeeJiWon Date: Wed, 5 Feb 2025 18:07:42 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20DB=EC=97=90=EC=84=9C=20=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=ED=95=9C=20=EC=B1=84=ED=8C=85=20=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=EC=97=90=EB=8F=84=20Redis=20=EC=BA=90=EC=8B=9C?= =?UTF-8?q?=EC=97=90=201=EB=B6=84=20TTL=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/techeer/abandoneddog/chatting/service/ChatService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/techeer/abandoneddog/chatting/service/ChatService.java b/src/main/java/com/techeer/abandoneddog/chatting/service/ChatService.java index 6ab46a1..64adfca 100644 --- a/src/main/java/com/techeer/abandoneddog/chatting/service/ChatService.java +++ b/src/main/java/com/techeer/abandoneddog/chatting/service/ChatService.java @@ -275,6 +275,7 @@ public List loadMessage(Long roomId) { messageList.add(chatDto); redisTemplate.opsForList().rightPush(roomId.toString(), chatDto); } + redisTemplate.expire(roomId.toString(), 1, TimeUnit.MINUTES); } else { for (Object obj : redisMessageList) { if (obj instanceof ChatMessageDto) {