php 关闭redis连接
方法:
$this->redis->connect($host, $port,3); //3秒连接超时 $this->redis = new Redis(); $this->redis->connect($host, $port); $this->redis->auth($auth); //这样解决就可以了,简单粗暴
更多相关文章,请访问PHP中文网!
Copyright © 2019- hids.cn 版权所有
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务