feat: 添加 Redis TLS 支持

- 在 .env.example 中新增 REDIS_ENABLE_TLS 配置项
- 更新 config.example.js 以支持 TLS 连接
- 修改 RedisClient 类以根据配置启用或禁用 TLS
This commit is contained in:
sunday
2025-07-16 02:52:21 +08:00
parent ec9847fa05
commit 36bf69adbb
4 changed files with 49 additions and 450 deletions

View File

@@ -28,7 +28,8 @@ const config = {
commandTimeout: 5000,
retryDelayOnFailover: 100,
maxRetriesPerRequest: 3,
lazyConnect: true
lazyConnect: true,
enableTLS: process.env.REDIS_ENABLE_TLS || false,
},
// 🎯 Claude API配置