connect(Redis["host"], Redis["port"]); $redis->auth(Redis["password"]); if ($r_conn) { return $redis; } else { return false; } } catch (\Throwable $th) { //throw $th; return false; } }