-
Notifications
You must be signed in to change notification settings - Fork 1
Cpool is a General connection pools for PHP. Use it for Memcache long connections.email:[email protected]
ronalfei/cpool
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Cpool cpool是一个小巧, 通用和稳定的php缓存连接池. Goals 主要用来解决php和memcached的长连接问题,已达到跟memcached连接的稳定性. dependent PHP端需要安装相应的memcache客户端. 当然, 对于cpool, 需要安装erlang运行环境,并配置好环境变量. Scene 通常多台php的webserver会跨ip连接一台memcached,由于某些原因会导致php和memcached的连接不能及时打开, 这时候通过php通过短连接去连接本地的cpool Server,而cpool去连接memcached, 从而解决对cache连接的不稳定性. Getting Started 1. 从github上下载cpool, 配置cpool.hrl. 2. 项目根目录执行make. 3. 可通过start-dev.sh来启动调试模式, 可通过start.sh启动后台模式(之后可以通过attach.sh进入控制台) 4. 修改php连接缓存的地址和端口为cpool的监听地址和端口(默认为127.0.0.1:11111). CPOOL Cpool is a small, general, stable connection pools for PHP. Feel free to use it for Memcache long connection.
About
Cpool is a General connection pools for PHP. Use it for Memcache long connections.email:[email protected]
Resources
Stars
Watchers
Forks
Packages 0
No packages published