连接池

    1. <?php
    2. use Hyperf\Contract\ConnectionInterface;
    3. use Hyperf\Pool\Pool;
    4. class MyConnectionPool extends Pool
    5. public function createConnection(): ConnectionInteface
    6. return new MyConnection();
    7. }
    8. }