c#怎么设置链接redis的超时时间

2025-04-29 07:14:04
推荐回答(1个)
回答1:

$this->redis->connect($host, $port,3);
3秒连接超时
可以根据需要自己修改。