From 6d578d016127db97d6f981ff18614ef52a2e0ede Mon Sep 17 00:00:00 2001
From: xxyy <cathay_xy@163.com>
Date: 星期三, 05 三月 2025 17:19:01 +0800
Subject: [PATCH] 添加缓存服务及相关功能支持

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/appsettings.json |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/appsettings.json b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/appsettings.json
index 5731809..8460061 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/appsettings.json
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/appsettings.json
@@ -24,6 +24,18 @@
     // 娉ㄦ剰锛宧ttp://127.0.0.1:1818 鍜� http://localhost:1818 鏄笉涓�鏍风殑
     "IPs": "http://127.0.0.1:8080,http://localhost:8080,http://127.0.0.1:8081,http://localhost:8081"
   },
+
+  //缂撳瓨璁剧疆
+  "CacheSettings": {
+    "UseRedis": true, //鍚敤redis
+    "RedisSettings": {
+      "Address": "127.0.0.1:6379", //鍦板潃
+      "Password": "123456", //Redis鏈嶅姟瀵嗙爜
+      "Db": 9, //榛樿搴�
+      "ClearRedis": true //鏄惁姣忔鍚姩閮芥竻闄edis缂撳瓨
+    }
+  },
+
   "ApiName": "WIDESEA",
   "ExpMinutes": 120,
 
@@ -32,10 +44,10 @@
 
   // 鍏佽鍑哄簱鐨勭紪鐮�
   "OutBoundMateriel": [
-    {
-      "MaterielCode": "CC01050001348",
-      "ProductionLine": "ZJ-8",
-      "ProcessCode": "CH001"
-    }
+    //{
+    //  "MaterielCode": "CC01050001348",
+    //  "ProductionLine": "ZJ-8",
+    //  "ProcessCode": "CH001"
+    //}
   ]
 }

--
Gitblit v1.9.3