\Worker\BuiltRedisWorker

Redis管理器

Summary

Methods
Properties
Constants
addClient()
getClient()
forkPassive()
$facadeClass
$redisList
$redisConfigs
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$facadeClass

$facadeClass : string

Type

string

$redisList

$redisList : \Redis[]

Type

Redis[]

$redisConfigs

$redisConfigs : array

Type

array

Methods

addClient()

addClient(array  $config, string|null  $name = 'default') : void

Parameters

array $config
string|null $name

Throws

\RedisException

getClient()

getClient(string  $name = 'default') : \Redis|null

Parameters

string $name

Returns

\Redis|null —

forkPassive()

forkPassive() : void

抛弃父进程的所有Redis连接