public function rename($name): bool
    {
        if ($name instanceof self) {
            $name = $name->key;
        }

        $ret       = $this->redis->rename($this->key, $name);
        $this->key = $name;

        return $ret;
    }
public function rename($name): bool
    {
        if ($name instanceof self) {
            $name = $name->key;
        }

        $ret       = $this->redis->rename($this->key, $name);
        $this->key = $name;

        return $ret;
    }
@param RedisObject|string $name Key or other RedisObject as new key.

@return bool Always true. (Because the client throws an exception when no renaming was possible...)