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 15
static bool
isConfigured()
Determine if Redis integration testing is configured.
at line 24
static bool
usesCluster()
Determine if Redis integration testing uses a Cluster.
at line 34
static array
clusterSeeds()
Get the configured Redis Cluster seeds.
at line 54
static int
primaryDatabase(string|false $token)
Get the primary Redis database for the current test worker.
at line 70
static int
secondaryDatabase(string|false $token)
Get the secondary Redis database for the current test worker.
at line 82
static void
configure(Repository $config, string|false $token)
Configure every named Redis connection for integration testing.