Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a multi-bulk reply include a status or error reply?

I am implementing a parser for the Redis network protocol.

While browsing the documentation, I came across the following statement:

A Multi bulk reply is used to return an array of other replies. Every element of a Multi Bulk Reply can be of any kind, including a nested Multi Bulk Reply.

However, it was unclear to me whether or not this includes status or error replies since returning a status or an error reply within a multi-bulk reply really doesn't make any sense.

Are there any commands that would return a multi-bulk reply that includes a status or error reply?

like image 267
Nathan Osman Avatar asked Nov 02 '22 18:11

Nathan Osman


1 Answers

Yes: transactions and Lua scripts.

See Errors inside a transaction for instance.

(Note: I had written another response that was completely wrong because I had misunderstood your question.)

like image 132
catwell Avatar answered Nov 12 '22 22:11

catwell