list($host, $port, $timeout,$auth) = $server; $redis = new \Redis(); $redis->connect($host, $port, $timeout); if ($auth) { $redis->auth($auth); }