AdonisJS API
    Preparing search index...

    Class RedisCheck

    The RedisCheck pings the redis server to ensure we are able to connect to it.

    const check = new RedisCheck(redis.connection())
    const result = await check.run()

    if (result.isHealthy) {
    console.log('Redis is healthy')
    }

    Hierarchy

    • BaseCheck
      • RedisCheck
    Index
    name: string

    Health check public name

    • Executes the health check

      Returns Promise<HealthCheckResult>

      const result = await check.run()
      console.log(result.status) // 'ok' or 'error'