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.

Details

at line 21
__construct(Container $container)

Create a pool manager.

Parameters

Container $container

at line 32
void purgeAll()

Remove all pools and close their connections.

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

Return Value

void

at line 64
void purge(string $name)

Remove a pool and close its connections.

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

Parameters

string $name

Return Value

void

at line 77
RedisPool pool(string $name)

Get or create a pool for the given connection name.

Parameters

string $name

Return Value

RedisPool

at line 126
array getPools()

Get the existing pools keyed by connection name.

Return Value

array