fix(GOV-009): 完成脚手架审查整改

This commit is contained in:
2026-08-13 18:30:57 +08:00
parent dcdf634457
commit 3a8120a33a
47 changed files with 752 additions and 101 deletions
@@ -11,6 +11,7 @@ interface RedisPingPort {
quit(): Promise<unknown>;
}
/** Redis 健康客户端只执行连接与 PING,不读写任何业务键。 */
export class RedisHealthClient implements OnModuleDestroy {
constructor(private readonly client: RedisPingPort) {}
@@ -42,6 +43,7 @@ export class RedisHealthClient implements OnModuleDestroy {
}
}
/** 使用 lazyConnect 创建最小连接池,只有健康请求触发真实连接。 */
export function createRedisHealthClient(config: RedisRuntimeConfig): RedisHealthClient {
const client = new Redis({
host: config.host,