PoolManager
class PoolManager
Properties
| protected RedisPool> | $pools |
Methods
void
purgeAll()
Remove all pools and close their connections.
void
purge(string $name)
Remove a pool and close its connections.
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.
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.
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.
at line 88
RedisPool
pool(string $name)
Get or create a pool for the given connection name.
at line 133
array
getPools()
Get the existing pools keyed by connection name.
at line 143
string
contextKey(string $name)
| internal |
Get this manager's coroutine context key for the given entry.