Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
<?php Swoole\ConnectionPool->__construct (callable $constructor, int $size = 64, ?string $proxy = null)
A constructor function to create a new connection, it could be RedisConfig
, PDOConfig
or RedisConfig
This size of connection pool.
Optional proxy function
Create a new ConnectionPool with constructor function, pool size, optional proxy function.