public function getConnection($connection = null)
    {
        if ($connection) {
            $this->connection = $connection;
        }

        return Redis::connection($this->connection);
    }
public function getConnection($connection = null)
    {
        if ($connection) {
            $this->connection = $connection;
        }

        return Redis::connection($this->connection);
    }
public function getConnection ( $ connection = null ) { if ( $ connection ) { $ this -> connection = $ connection ; } return Redis :: connection ( $ this -> connection ) ; }
Get a registered connection instance.

@param string $connection

@return Connection
Get a registered connection instance .