@classmethod<EOL><INDENT>def decode(cls, value):<DEDENT>
try:<EOL><INDENT>return None if value is None elselist(json.loads(value.decode(cls._encoding)))<EOL><DEDENT>except (TypeError, AttributeError):<EOL><INDENT>return list(value)<EOL><DEDENT>
take a utf-8 encoded byte-string from redis and
turn it back into a list

:param value: bytes
:return: list