Skip to content

request.multibulk  #73

@xiecheng1991

Description

@xiecheng1991
buffer[1] = '*' .. tostring(argsn + 1) .. "\r\n"
buffer[2] = '$' .. #command .. "\r\n" .. command .. "\r\n"

local table_insert = table.insert
for i = 1, argsn do
    local s_argument = tostring(args[i] or '')
    table_insert(buffer, '$' .. #s_argument .. "\r\n" .. s_argument .. "\r\n")
end

i got confused with that we have to communicate with redis in this format?
please help me to understand why thanks!

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