def encode(*args):
result = []<EOL>result.append("<STR_LIT:*>")<EOL>result.append(str(len(args)))<EOL>result.append(DELIMITER)<EOL>for arg in args:<EOL><INDENT>result.append("<STR_LIT:$>")<EOL>result.append(str(len(arg)))<EOL>result.append(DELIMITER)<EOL>result.append(arg)<EOL>result.append(DELIMITER)<EOL><DEDENT>return "<STR_LIT>".join(result)<EOL>
Pack a series of arguments into a value Redis command