php redis如何关闭-PHP问题

资源魔 30 0

php封闭redis的办法:起首关上相应文件;而后输出语句为“$this->redis->connect($host, $port,3);$this->redis = new Redis(); ”;最初保留修正便可。

php 封闭redis衔接

办法:

$this->redis->connect($host, $port,3); 
//3秒衔接超时
$this->redis = new Redis();
$this->redis->connect($host, $port); 
$this->redis->auth($auth); 
//这样处理就能够了,简略粗犷

更多相干文章,请拜访PHP中文网!

以上就是php redis若何封闭的具体内容,更多请存眷资源魔其它相干文章!

标签: php教程 Redis php故障解决 php使用问题

抱歉,评论功能暂时关闭!