PoolFactory
class PoolFactory
Properties
| protected RedisPool[] | $pools |
Methods
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.
Details
at line 16
__construct(Container $container)
No description
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.
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.
at line 56
RedisPool
getPool(string $name)
Get or create a pool for the given connection name.