Encodes a command as a RESP array of bulk strings.
Strings are UTF-8 encoded and numbers stringified, so encodeCommand(['SET', 'k', 1]) and
encodeCommand(['SET', 'k', '1']) are the same bytes. Byte arguments pass through untouched,
which is what keeps values binary-safe.
Encodes a command as a RESP array of bulk strings.
Strings are UTF-8 encoded and numbers stringified, so
encodeCommand(['SET', 'k', 1])andencodeCommand(['SET', 'k', '1'])are the same bytes. Byte arguments pass through untouched, which is what keeps values binary-safe.