UNPKG

@nestjs-redis/health-indicator

Version:

A comprehensive Redis health indicator for NestJS applications using the Terminus health check library

21 lines 937 B
import type { RedisClientType, RedisClusterType, RedisSentinelType, createClient, createCluster, createSentinel } from 'redis'; import { HealthIndicatorResult } from './nestjs-terminus'; type Redis = ReturnType<typeof createClient> | ReturnType<typeof createCluster> | ReturnType<typeof createSentinel> | RedisClientType | RedisClusterType | RedisSentinelType; export declare class RedisHealthIndicator { /** * TODO * * This is workaround, this should be DI but for some reason * HealthIndicatorService is not injected after building the package. * * Reference (how it should be): https://docs.nestjs.com/recipes/terminus#custom-health-indicator * * ToDo: Fix this issue in the future. */ private healthIndicatorService; isHealthy(key: string, { client }: { client: Redis; }): Promise<HealthIndicatorResult>; } export {}; //# sourceMappingURL=health.indicator.d.ts.map