RedisTestConfiguration
class RedisTestConfiguration
Methods
static bool
isConfigured()
Determine if Redis integration testing is configured.
static bool
usesCluster()
Determine if Redis integration testing uses a Cluster.
static array
clusterSeeds()
Get the configured Redis Cluster seeds.
static int
primaryDatabase(string|false $token)
Get the primary Redis database for the current test worker.
static int
secondaryDatabase(string|false $token)
Get the secondary Redis database for the current test worker.
static void
configure(Repository $config, string|false $token)
Configure every named Redis connection for integration testing.
Details
at line 16
static bool
isConfigured()
Determine if Redis integration testing is configured.
at line 25
static bool
usesCluster()
Determine if Redis integration testing uses a Cluster.
at line 36
static array
clusterSeeds()
Get the configured Redis Cluster seeds.
at line 57
static int
primaryDatabase(string|false $token)
Get the primary Redis database for the current test worker.
at line 73
static int
secondaryDatabase(string|false $token)
Get the secondary Redis database for the current test worker.
at line 85
static void
configure(Repository $config, string|false $token)
Configure every named Redis connection for integration testing.