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.

Return Value

bool

at line 24
static bool usesCluster()

Determine if Redis integration testing uses a Cluster.

Return Value

bool

at line 34
static array clusterSeeds()

Get the configured Redis Cluster seeds.

Return Value

array

at line 54
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 70
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 82
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