library/Rediska/Connection/Exec.php
public function getConnection()
    {
        if ($this->_responseIterator === null) {
            return $this->_connection;
        } else {
            if ($this->_connectionClone === null) {
                $this->_connectionClone = clone $this->_connection;
            }

            return $this->_connectionClone;
        }

        return $this->_connection;
    }
public function getConnection()
    {
        if ($this->_responseIterator === null) {
            return $this->_connection;
        } else {
            if ($this->_connectionClone === null) {
                $this->_connectionClone = clone $this->_connection;
            }

            return $this->_connectionClone;
        }

        return $this->_connection;
    }
Get connection

@return Rediska_Connection