@classmethod<EOL><INDENT>def encode(cls, value):<DEDENT>
try:<EOL><INDENT>coerced = [str(v) for v in value]<EOL>if coerced == value:<EOL><INDENT>return "<STR_LIT:U+002C>".join(coerced).encode(cls._encoding) if len(<EOL>value) > <NUM_LIT:0> else None<EOL><DEDENT><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>raise InvalidValue('<STR_LIT>')<EOL>
the list it so it can be stored in redis.

:param value: list
:return: bytes