@classmethod<EOL><INDENT>def encode(cls, value):<DEDENT>
try:<EOL><INDENT>coerced = int(value)<EOL>if coerced + <NUM_LIT:0> == value:<EOL><INDENT>return repr(coerced)<EOL><DEDENT><DEDENT>except (TypeError, ValueError):<EOL><INDENT>pass<EOL><DEDENT>raise InvalidValue('<STR_LIT>')<EOL>
take an integer and turn it into a string representation
to write into redis.

:param value: int
:return: str