library/Rediska/Key/Abstract.php
public function rename($newName, $overwrite = true)
    {
        try {
            $this->_getRediskaOn()->rename($this->getName(), $newName, $overwrite);
        } catch (Rediska_Exception $e) {
            return false;
        }
        
        $this->setName($newName);

        if (!is_null($this->getExpire())) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return true;
    }
public function rename($newName, $overwrite = true)
    {
        try {
            $this->_getRediskaOn()->rename($this->getName(), $newName, $overwrite);
        } catch (Rediska_Exception $e) {
            return false;
        }
        
        $this->setName($newName);

        if (!is_null($this->getExpire())) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return true;
    }
Rename key

@param string  $newName
@param boolean $overwrite
@return boolean