skunight/nestjs-redis

feature request: add redis healthcheck indicator for terminus

Opened this issue · 7 comments

Hello there!
Thanks for nice module.
I think it would be good to have healthcheck indicator for redis same as we have for typeorm

there are some more examples and better module which is actually gets updates
https://github.com/liaoliaots/nestjs-redis/blob/main/lib/health/indicators/redis.health.ts

@MarkWarneke There is a sample for checking redis in the terminus repo:

https://github.com/nestjs/terminus/blob/08c0de9976c73e8d665b1f4c8a9976cb1fc02f51/sample/002-microservice-app/src/health/health.controller.ts#L21-L28

Is it working ?

No, i try it ,It is not working

import { parseURL } from 'ioredis/built/utils';

the ioredis seems do not support the url in the options

const redisOption = parseURL(this.configService.get('REDIS_URL'));

this.microservice.pingCheck<RedisOptions>('redis', {
	transport: Transport.REDIS,
	options: {
		...redisOption,
	},
})

Any updates here?