class PoolManager

Properties

protected RedisPool> $pools

Methods

__construct(Container $container)

Create a pool manager.

void
purgeAll()

Remove all pools and close their connections.

void
purge(string $name)

Remove a pool and close its connections.

pool(string $name)

Get or create a pool for the given connection name.

array
getPools()

Get the existing pools keyed by connection name.

string
contextKey(string $name)

Get this manager's coroutine context key for the given entry.

Details

at line 37
__construct(Container $container)

Create a pool manager.

Parameters

Container $container

at line 48
void purgeAll()

Remove all pools and close their connections.

Closes worker-shared pools; connections already checked out by concurrent coroutines are destroyed on release.

Return Value

void

at line 74
void purge(string $name)

Remove a pool and close its connections.

Closes a worker-shared pool; connections already checked out by concurrent coroutines are destroyed on release.

Parameters

string $name

Return Value

void

at line 88
RedisPool pool(string $name)

Get or create a pool for the given connection name.

Parameters

string $name

Return Value

RedisPool

at line 133
array getPools()

Get the existing pools keyed by connection name.

Return Value

array

at line 143
string contextKey(string $name)

internal  
 

Get this manager's coroutine context key for the given entry.

Parameters

string $name

Return Value

string