提交 64aa5a92 编写于 作者: A Allen

cache redis添加auth

上级 0c8da756
......@@ -72,6 +72,8 @@ class Redis extends Cache
{
$r = new \Redis();
$r->connect(self::$conf[$this->key]['host'], self::$conf[$this->key]['port'], 0);
if(!empty(self::$conf[$this->key]['auth']))
$r->auth(self::$conf[$this->key]['auth']);
return $r;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册