From 1733802e02b7e69e4c8646f259da5098b87888f7 Mon Sep 17 00:00:00 2001 From: nsnail Date: Mon, 8 Jul 2024 21:25:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20error=20CS0117:=20'Number?= =?UTF-8?q?s'=20does=20not=20contain=20a=20definition=20for=20'SECS=5FCACH?= =?UTF-8?q?E=5FDIC=5FCATALOG=5FCODE'=20(#155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: tk --- .../NetAdmin.Infrastructure/Constant/Numbers.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs b/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs index 1443f50d..3f7ce98a 100644 --- a/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs +++ b/src/backend/NetAdmin.Infrastructure/Constant/Numbers.cs @@ -24,10 +24,11 @@ public static class Numbers public const int MAX_LIMIT_QUERY_PAGE_NO = 10000; // 最大限制:分页查询页码 public const int MAX_LIMIT_QUERY_PAGE_SIZE = 100; // 最大限制:分页查询页容量 - public const int SECS_CACHE_CHART = 300; // 秒:缓存时间-仪表 - public const int SECS_CACHE_DEFAULT = 60; // 秒:缓存时间-默认 - public const int SECS_RED_LOCK_EXPIRY = 30; // 秒:RedLock-锁过期时间,假如持有锁的进程挂掉,最多在此时间内锁将被释放(如持有锁的进程正常,此值不会生效) - public const int SECS_RED_LOCK_RETRY = 1; // 秒:RedLock-锁等待时间内,多久尝试获取一次 - public const int SECS_RED_LOCK_WAIT = 10; // 秒:RedLock-锁等待时间,相同的 resource 如果当前的锁被其他线程占用,最多等待时间 - public const int SECS_TIMEOUT_JOB = 600; // 秒:超时时间-作业 + public const int SECS_CACHE_CHART = 300; // 秒:缓存时间-仪表 + public const int SECS_CACHE_DEFAULT = 60; // 秒:缓存时间-默认 + public const int SECS_CACHE_DIC_CATALOG_CODE = 300; // 秒:缓存时间-字典配置-目录代码 + public const int SECS_RED_LOCK_EXPIRY = 30; // 秒:RedLock-锁过期时间,假如持有锁的进程挂掉,最多在此时间内锁将被释放(如持有锁的进程正常,此值不会生效) + public const int SECS_RED_LOCK_RETRY = 1; // 秒:RedLock-锁等待时间内,多久尝试获取一次 + public const int SECS_RED_LOCK_WAIT = 10; // 秒:RedLock-锁等待时间,相同的 resource 如果当前的锁被其他线程占用,最多等待时间 + public const int SECS_TIMEOUT_JOB = 600; // 秒:超时时间-作业 } \ No newline at end of file