From a5988fc59b058bd8a160a904447b2f6ba92dc519 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Fri, 20 Sep 2024 08:43:42 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E6=9F=A5=E8=AF=A2=E6=97=B6=E8=B5=8B?= =?UTF-8?q?=E4=BA=88redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/luoo/user/service/TaskPointService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java b/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java index 629d826..be450e0 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/TaskPointService.java @@ -202,6 +202,7 @@ public class TaskPointService { TaskPoint taskPoint = (TaskPoint) redisTemplate.opsForValue().get(TASK_POINT + id); if(taskPoint == null) { taskPoint = taskPointDao.findById(id).get(); + redisTemplate.opsForValue().set(TASK_POINT + id, taskPoint); } return taskPoint; }