add pass redis test
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
This commit is contained in:
parent
7b37cc37db
commit
2f7ec40e78
8 changed files with 23 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue