优化Redis 接收逻辑

This commit is contained in:
2026-03-13 11:32:46 +08:00
parent 03a27dbde8
commit da7356f016
18 changed files with 254 additions and 17 deletions

View File

@@ -324,7 +324,7 @@ namespace Common
CSRedisClient client = WhitchRedisSlice(SliceNo);
client.LPush(key, obj);
}
public static int MaxLen = 800000;
public static long MaxLen = 1000000;
public static void StreamAdd(int SliceNo, string key, string Value)
{
try
@@ -333,9 +333,9 @@ namespace Common
// 添加简单消息
client.XAdd(key, MaxLen, "*", new ValueTuple<string, string>("__data", Value));
}
catch (Exception)
catch (Exception ex)
{
logger.Error("队列添加出异常了:"+ex.Message);
}
}
public static void StreamConsume(int SliceNo, string key, string group = "UDPData", string consumer = "Crics1")