From 518e2d596cf846172d764c6d3f05316cb8367860 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 27 三月 2026 14:28:02 +0800
Subject: [PATCH] feat(RouterService): 新增 ClearRouterCache 清除路由缓存方法

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs
index 731bd19..5ea6ce5 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs
@@ -56,6 +56,15 @@
         }
 
         /// <summary>
+        /// 娓呴櫎鎵�鏈夎矾鐢辩紦瀛橈紙鍏ュ彛鍜屽嚭鍙g被鍨嬶級
+        /// </summary>
+        public void ClearRouterCache()
+        {
+            _cacheService.Remove("Router:AllRouters:In");
+            _cacheService.Remove("Router:AllRouters:Out");
+        }
+
+        /// <summary>
         /// 鏍规嵁璧风偣/褰撳墠浣嶇疆銆佺粓鐐硅幏鍙栦笅涓�涓瓙鑺傜偣銆�
         /// </summary>
         /// <param name="startPosi">璧风偣/褰撳墠浣嶇疆銆�</param>

--
Gitblit v1.9.3