trait Illuminate / Foundation / Testing / Concerns / InteractsWithRedis
You are viewing an older version of the documentation. For the latest, please visit master documentation.

InteractsWithRedis

Properties

private static

$connectionFailedOnceWithDefaultsSkip bool

Indicate connection failed if redis is not available.

Default: false
private

$redis Illuminate\...\RedisManager[]

Redis manager instance.

Default: null

Methods

public

setUpRedis ( ) : void

Setup redis connection.

public

tearDownRedis ( ) : void

Teardown redis connection.

public

redisDriverProvider ( ) : array

Get redis driver provider.

public

ifRedisAvailable ( $callback ) : void

Run test if redis is available.

Parameters

  • $callback callable