@classmethod
def decode(cls, value):
    """
        read bytes from redis and turn it back into an integer.

        :param value: bytes
        :return: int
        """
    return None if value is None else int(float(value))
