class RedisMasterSupervisorRepository implements MasterSupervisorRepository

Traits

Methods

array
pipeline(callable $callback)

Execute commands in a pipeline, falling back to a transaction.

__construct(Factory $redis)

Create a new repository instance.

array
names()

Get the names of all the master supervisors currently running.

array
all()

Get information on all of the supervisors.

stdClass|null
find(string $name)

Get information on a master supervisor by name.

array
get(array $names)

Get information on the given master supervisors.

void
update(MasterSupervisor $master)

Update the information about the given master supervisor.

void
forget(string $name)

Remove the master supervisor information from storage.

void
flushExpired()

Remove expired master supervisors from storage.

connection()

Get the Redis connection instance.

Details

protected array pipeline(callable $callback)

Execute commands in a pipeline, falling back to a transaction.

Parameters

callable $callback

Return Value

array

at line 23
__construct(Factory $redis)

Create a new repository instance.

Parameters

Factory $redis

at line 31
array names()

Get the names of all the master supervisors currently running.

Return Value

array

at line 43
array all()

Get information on all of the supervisors.

Return Value

array

at line 51
stdClass|null find(string $name)

Get information on a master supervisor by name.

Parameters

string $name

Return Value

stdClass|null

at line 59
array get(array $names)

Get information on the given master supervisors.

Parameters

array $names

Return Value

array

at line 77
void update(MasterSupervisor $master)

Update the information about the given master supervisor.

Parameters

MasterSupervisor $master

Return Value

void

at line 107
void forget(string $name)

Remove the master supervisor information from storage.

Parameters

string $name

Return Value

void

at line 125
void flushExpired()

Remove expired master supervisors from storage.

Return Value

void

at line 137
protected RedisProxy connection()

Get the Redis connection instance.

Return Value

RedisProxy