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 14
static int
baseDatabase()
Get the base Redis DB number.
at line 22
static int
minimumDatabase()
Get the first Redis DB number available for parallel test workers.
at line 30
static int
maximumDatabase()
Get the last Redis DB number available for parallel test workers.
at line 38
static int|null
configuredSecondaryDatabase()
Get the configured secondary Redis DB number.
at line 50
static int
primaryDatabase(string|false $token)
Get the primary Redis DB number for a test worker.
at line 62
static int
databaseForToken(string $token)
Get the primary Redis DB number for a parallel testing token.
at line 81
static int
secondaryDatabase(string|false $token)
Get the secondary Redis DB number.
at line 101
static array
workerDatabases()
Get the configured Redis worker databases.
at line 126
static int
workerIndex(string $token)
Get the zero-based Redis worker index for a ParaTest token.
at line 138
static int
integerEnvironment(string $key, int $default)
Get a non-negative integer Redis environment value.
at line 152
static int
integerEnvironmentValue(string $key, mixed $value)
Parse a non-negative integer Redis environment value.