class PoolFactory

Properties

protected RedisPool[] $pools

Methods

__construct(Container $container)

No description

void
flushAll()

Flush all connections from all pools and clear the cached pool instances.

void
flushPool(string $name)

Flush a specific pool, closing all connections.

getPool(string $name)

Get or create a pool for the given connection name.

Details

at line 16
__construct(Container $container)

No description

Parameters

Container $container

at line 27
void flushAll()

Flush all connections from all pools and clear the cached pool instances.

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

Return Value

void

at line 43
void flushPool(string $name)

Flush a specific pool, closing all 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 56
RedisPool getPool(string $name)

Get or create a pool for the given connection name.

Parameters

string $name

Return Value

RedisPool