add pass redis test
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s

This commit is contained in:
harid 2026-06-29 16:01:16 +07:00
parent 7b37cc37db
commit 2f7ec40e78
8 changed files with 23 additions and 5 deletions

View file

@ -217,17 +217,20 @@ class CheckAuth {
// Create Redis client
const redisClient = this.redis.createClient({
socket: {
host: REDIS_HOST,
port: REDIS_PORT,
},
// socket: {
// host: REDIS_HOST,
// port: REDIS_PORT,
// },
host: REDIS_HOST,
port: REDIS_PORT,
password: process.env.REDIS_PASSWORD,
});
redisClient.on("error", (err: any) => {
console.error("[REDIS] Connection error:", err.message);
});
await redisClient.connect();
// await redisClient.connect();
console.log("[REDIS] Connected successfully!");
const getAsync = promisify(redisClient.get).bind(redisClient);