Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request.multibulk #73

Open
xiecheng1991 opened this issue Mar 24, 2021 · 0 comments
Open

request.multibulk #73

xiecheng1991 opened this issue Mar 24, 2021 · 0 comments

Comments

@xiecheng1991
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant