Skip to content

New Command SCAN #27

@qitianshuye

Description

@qitianshuye

public Tuple<int, string[]> ReadTuper()
{
readType(ResponseType.MultiBulk);

        var count = _reader.ReadNumberLine();
        if (count == -1)
            return null;
        int corsor = int.Parse(ReadStrBulk());

        readType(ResponseType.MultiBulk);
        count = _reader.ReadNumberLine();
        string[] result = new string[count];
        for (var i = 0; i < result.Length; i++)
            result[i] = ReadStrBulk();
        return Tuple.Create<int, string[]>(corsor, result); ;

    }

New Command SCAN
image

Expecting a Bulk reply, got instead 115 reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions