redis-lua icon indicating copy to clipboard operation
redis-lua copied to clipboard

request.multibulk

Open xiecheng1991 opened this issue 4 years ago • 0 comments

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!

xiecheng1991 avatar Mar 24 '21 10:03 xiecheng1991