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.

Return Value

bool

at line 25
static bool usesCluster()

Determine if Redis integration testing uses a Cluster.

Return Value

bool

at line 36
static array clusterSeeds()

Get the configured Redis Cluster seeds.

Return Value

array

at line 57
static int primaryDatabase(string|false $token)

Get the primary Redis database for the current test worker.

Parameters

string|false $token

Return Value

int

at line 73
static int secondaryDatabase(string|false $token)

Get the secondary Redis database for the current test worker.

Parameters

string|false $token

Return Value

int

at line 85
static void configure(Repository $config, string|false $token)

Configure every named Redis connection for integration testing.

Parameters

Repository $config
string|false $token

Return Value

void