swokit/conn-pool

a simple connection pool library of the php. base on swoole

v1.0.1 2018-11-26 06:37 UTC

This package is auto-updated.

Last update: 2024-04-29 03:54:11 UTC


README

License Php Version Latest Stable Version

资源池使用在 常住进程的服务 中才有用。比如用 swoole/workman 创建的应用

使用池可实现 数据库连接池、redis连接池等,减少对服务的过多的连接/断开带来的额外资源消耗

项目地址

安装

  • 使用 composer

编辑 composer.json,在 require 添加

"swokit/conn-pool": "dev-master"

然后执行: composer update

使用


License

MIT