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