library/Rediska/Command/Rename.php
public function parseResponses($responses)
    {
        if (!$this->isAtomic()) {
            $oldValue = $this->_rediska->getSerializer()->unserialize($responses[0]);
            if (!is_null($oldValue)) {
                $reply = $this->_rediska->set($this->newKey, $oldValue, $this->overwrite);

                if ($reply) {
                    $this->_rediska->delete($this->oldKey);
                }

                return $reply;
            } else {
                throw new Rediska_Command_Exception('No such key');
            }
        } else {
            return (boolean)$responses[0];
        }
    }
public function parseResponses($responses)
    {
        if (!$this->isAtomic()) {
            $oldValue = $this->_rediska->getSerializer()->unserialize($responses[0]);
            if (!is_null($oldValue)) {
                $reply = $this->_rediska->set($this->newKey, $oldValue, $this->overwrite);

                if ($reply) {
                    $this->_rediska->delete($this->oldKey);
                }

                return $reply;
            } else {
                throw new Rediska_Command_Exception('No such key');
            }
        } else {
            return (boolean)$responses[0];
        }
    }
Parse responses

@param array $responses
@return boolean