final class RedisVersionCheck implements EnvironmentCheckInterface

Checks that Redis/Valkey version meets requirements.

For any mode: Requires Redis 8.0+ or Valkey 9.0+ for hash-field expiration commands including HSETEX and HEXPIRE. For all mode: Any version is acceptable (just verifies connection).

Constants

private REDIS_REQUIRED_VERSION

private VALKEY_REQUIRED_VERSION

Methods

__construct(RedisConnection $redis, string $taggingMode)

Create a new Redis version check instance.

string
name()

Get the human-readable name of this check.

run()

Run the check and return results.

string|null
getFixInstructions()

Get details about how to fix a failed check.

Details

at line 33
__construct(RedisConnection $redis, string $taggingMode)

Create a new Redis version check instance.

Parameters

RedisConnection $redis
string $taggingMode

at line 42
string name()

Get the human-readable name of this check.

Return Value

string

at line 50
CheckResult run()

Run the check and return results.

Return Value

CheckResult

at line 97
string|null getFixInstructions()

Get details about how to fix a failed check.

Return Value

string|null