1. 问答
  2. 问答详情

PHP设置连接redis的超时时间

连接redis,如何设置超时时间

 $this->redis = new Redis(); 
 $this->redis->connect($host, $port); 
 $this->redis->auth($auth);

1个回答

0

采纳

$this->redis->connect($host, $port,3); 3秒连接超时


撰写答案

验证码
点击刷新