|
@ -80,7 +80,7 @@ export class RedisCacheService { |
|
|
|
|
|
|
|
|
public async isHealthy() { |
|
|
public async isHealthy() { |
|
|
try { |
|
|
try { |
|
|
const isHealthy = await Promise.race([ |
|
|
await Promise.race([ |
|
|
this.getKeys(), |
|
|
this.getKeys(), |
|
|
new Promise((_, reject) => |
|
|
new Promise((_, reject) => |
|
|
setTimeout( |
|
|
setTimeout( |
|
@ -90,7 +90,7 @@ export class RedisCacheService { |
|
|
) |
|
|
) |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
return isHealthy === 'PONG'; |
|
|
return true; |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|