'This the end token to a get or a stat operation.'

def cmd_END(self):

    cmd = self._current.popleft()
    if (cmd.command == 'get'):
        if cmd.multiple:
            values = {key: val[::2] for (key, val) in iteritems(cmd.values)}
            cmd.success(values)
        else:
            cmd.success((cmd.flags, cmd.value))
    elif (cmd.command == 'gets'):
        if cmd.multiple:
            cmd.success(cmd.values)
        else:
            cmd.success((cmd.flags, cmd.cas, cmd.value))
    elif (cmd.command == 'stats'):
        cmd.success(cmd.values)
    else:
        raise RuntimeError(('Unexpected    END    response    to    %s    command' % (nativeString(cmd.command),)))
