RedisTestDatabases
class RedisTestDatabases
Methods
Get the base Redis DB number.
Get the first Redis DB number available for parallel test workers.
Get the last Redis DB number available for parallel test workers.
Get the configured secondary Redis DB number.
Get the primary Redis DB number for a test worker.
Get the primary Redis DB number for a parallel testing token.
Get the secondary Redis DB number.
Get the configured Redis worker databases.
Get the zero-based Redis worker index for a ParaTest token.
Get a non-negative integer Redis environment value.
Parse a non-negative integer Redis environment value.
Details
at line 15
static int
baseDatabase()
Get the base Redis DB number.
at line 23
static int
minimumDatabase()
Get the first Redis DB number available for parallel test workers.
at line 31
static int
maximumDatabase()
Get the last Redis DB number available for parallel test workers.
at line 39
static int|null
configuredSecondaryDatabase()
Get the configured secondary Redis DB number.
at line 52
static int
primaryDatabase(string|false $token)
Get the primary Redis DB number for a test worker.
at line 64
static int
databaseForToken(string $token)
Get the primary Redis DB number for a parallel testing token.
at line 83
static int
secondaryDatabase(string|false $token)
Get the secondary Redis DB number.
at line 103
static array
workerDatabases()
Get the configured Redis worker databases.
at line 128
static int
workerIndex(string $token)
Get the zero-based Redis worker index for a ParaTest token.
at line 140
static int
integerEnvironment(string $key, int $default)
Get a non-negative integer Redis environment value.
at line 155
static int
integerEnvironmentValue(string $key, mixed $value)
Parse a non-negative integer Redis environment value.