(self, value: bytes, value_type: _EncodedKeyType)
Take a value blob and its value_type one-char code and convert it back
        to a python object
Take a value blob and its value_type one-char code and convert it back
        to a python object
Take a value blob and its value_type one - char code and convert it back to a python object
def decode(self, value: bytes, value_type: _EncodedKeyType) -> Any:
        """
        Take a value blob and its value_type one-char code and convert it back
        to a python object
        """
        if value_type == "i":
            return int(value)

        raw_value: bytes
        if value_type == "z":
            raw_value = zlib.decompress(value)
            value_type = "p"
        else:
            raw_value = force_bytes(value)

        if value_type == "p":
            return pickle.loads(raw_value)

        raise ValueError(
            f"Unknown value_type '{value_type}' read from the cache table."
        )
def decode ( self , value : bytes , value_type : _EncodedKeyType ) -> Any : if value_type == "i" : return int ( value ) raw_value : bytes if value_type == "z" : raw_value = zlib . decompress ( value ) value_type = "p" else : raw_value = force_bytes ( value ) if value_type == "p" : return pickle . loads ( raw_value ) raise ValueError ( f"Unknown value_type '{value_type}' read from the cache table." )