From aefdecd0aa3226b7d00d1dc764241b82658b3be8 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 06 三月 2026 10:41:02 +0800
Subject: [PATCH] 添加机器人客户端;更新 WCS 缓存及任务

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Options/RedisOptions.cs |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Options/RedisOptions.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Options/RedisOptions.cs
index 8b8a824..1f002be 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Options/RedisOptions.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Options/RedisOptions.cs
@@ -26,6 +26,32 @@
 
         public string KeyPrefix { get; set; } = "wcs:";
 
+        /// <summary>
+        /// 鏄惁鍚敤L1鍐呭瓨缂撳瓨灞傘�傜鐢ㄥ悗鍙娇鐢≧edis锛岄�傜敤浜庨渶瑕佸閮ㄤ慨鏀筊edis鏁版嵁鐨勫満鏅�
+        /// </summary>
+        public bool EnableL1Cache { get; set; } = true;
+
+        /// <summary>
+        /// 鏄惁鍚敤Redis鍒板唴瀛樼紦瀛樼殑鑷姩鍚屾
+        /// </summary>
+        public bool EnableAutoSync { get; set; } = true;
+
+        /// <summary>
+        /// 鑷姩鍚屾闂撮殧鏃堕棿锛堢锛夛紝榛樿30绉�
+        /// </summary>
+        public int SyncIntervalSeconds { get; set; } = 30;
+
+        /// <summary>
+        /// 鍚屾鏃跺崟娆℃壒閲忚幏鍙栫殑Redis key鏁伴噺涓婇檺锛岄槻姝竴娆℃壂鎻忚繃澶歬ey
+        /// </summary>
+        public int SyncBatchSize { get; set; } = 1000;
+
+        /// <summary>
+        /// 鑷姩鍚屾鎺掗櫎鐨刱ey鍓嶇紑鍒楄〃锛堣繖浜沰ey涓嶄細琚嚜鍔ㄥ悓姝ヨ鐩栵級
+        /// 渚嬪锛歔"wcs:SocketDevices:"] 琛ㄧず璁惧鐘舵�佷笉浼氳鑷姩鍚屾
+        /// </summary>
+        public List<string> SyncExcludePrefixes { get; set; } = new();
+
         public MonitoringOptions Monitoring { get; set; } = new();
 
         public EvictionOptions Eviction { get; set; } = new();

--
Gitblit v1.9.3