© 1999-2048 dssz.net 粤ICP备11031372号
[其它] PHP使用Redis长连接的方法详解
说明:本文实例讲述了PHP使用Redis长连接的方法。分享给大家供大家参考,具体如下: php-redis在github上的项目地址:https://github.com/phpredis/phpredis pconnect函数声明 其中time_out表示客户端闲置多少秒后,就断开连接。函数连接成功返回true,失败返回false: pconnect(host, port, time_out, persistent_id, retry_interval) host: string. can<weixin_38639471> 上传 | 大小:75kb