trait Illuminate / Foundation / Testing / Concerns / InteractsWithRedis
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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 static

redisDriverProvider ( ) : array

Get redis driver provider.

public

ifRedisAvailable ( $callback ) : void

Run test if redis is available.

Parameters

  • $callback callable