I am trying to implement a healthCheck route on top of ioredis client. I am doing also tests for it like:
async healthCheck(): Promise<HealthCheck> { try { await this.client.ping(); return HealthCheck.UP; } catch (_e) { return HealthCheck.DOWN; } }
The issue with .ping() is that always returns 'PONG' even though I have called client.disconnect()
I am trying to implement a healthCheck route on top of ioredis client. I am doing also tests for it like:
async healthCheck(): Promise<HealthCheck> { try { await this.client.ping(); return HealthCheck.UP; } catch (_e) { return HealthCheck.DOWN; } }
The issue with .ping() is that always returns 'PONG' even though I have calledclient.disconnect()