From 0a567fd9c3baeb8022c77fa1a6a96d4c60cfa11c Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 23 五月 2024 08:18:47 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/java/com/example/erp/common/CacheUtil.java |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/common/CacheUtil.java b/north-glass-erp/src/main/java/com/example/erp/common/CacheUtil.java
new file mode 100644
index 0000000..0ef07c5
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/common/CacheUtil.java
@@ -0,0 +1,23 @@
+package com.example.erp.common;
+
+import com.example.erp.controller.dto.UserDTO;
+import org.springframework.cache.annotation.CacheEvict;
+import org.springframework.cache.annotation.Cacheable;
+import org.springframework.stereotype.Component;
+
+@Component
+public class CacheUtil {
+    @Cacheable(value="users", key="#id")
+    public UserDTO getCacheData(String id){
+        return null;
+    }
+
+    @Cacheable(value="users", key="#userDTO.getUserId()")
+    public UserDTO setCacheData(UserDTO userDTO){
+
+        return userDTO;
+    }
+
+
+
+}

--
Gitblit v1.8.0