Skip to content

Redis Check

Redis Check

Sends a PING command to Redis and validates the response.

Configuration

'checks_config' => [
    'redis' => ['connection' => 'default'],
],

Usage

use Cbox\LaravelHealth\Checks\RedisCheck;

'checks' => [
    'readiness' => [
        RedisCheck::class,
    ],
],

Behavior

  • Sends PING to the configured Redis connection
  • Accepts true, PONG, or +PONG as valid responses
  • Returns ok on valid response, critical on failure