def parse(self, key: str):
    '\n        Parse value of redis key on redis for encoded HASH, SET types, or\n        JSON / Protobuf encoded state-wrapped types and prints it\n\n        Args:\n            key: key on redis\n\n        '
    redis_type = self.client.type(key).decode('utf-8')
    key_type = key
    if (':' in key):
        key_type = key.split(':')[1]
    if (redis_type == 'hash'):
        deserializer = self.STATE_DESERIALIZERS.get(key_type)
        if (not deserializer):
            raise AttributeError('Key not found on redis')
        self._parse_hash_type(deserializer, key)
    elif (redis_type == 'set'):
        deserializer = self.STATE_DESERIALIZERS.get(key_type)
        if (not deserializer):
            raise AttributeError('Key not found on redis')
        self._parse_set_type(deserializer, key)
    else:
        value = self.client.get(key)
        try:
            self._parse_state_json(value)
        except UnicodeDecodeError:
            self._parse_state_proto(key_type, value)
Parse value of redis key on redis for encoded HASH, SET types, or
JSON / Protobuf encoded state-wrapped types and prints it

Args:
    key: key on redis
def parse(self, key: str):
    '\n        Parse value of redis key on redis for encoded HASH, SET types, or\n        JSON / Protobuf encoded state-wrapped types and prints it\n\n        Args:\n            key: key on redis\n\n        '
    redis_type = self.client.type(key).decode('utf-8')
    key_type = key
    if (':' in key):
        key_type = key.split(':')[1]
    if (redis_type == 'hash'):
        deserializer = self.STATE_DESERIALIZERS.get(key_type)
        if (not deserializer):
            raise AttributeError('Key not found on redis')
        self._parse_hash_type(deserializer, key)
    elif (redis_type == 'set'):
        deserializer = self.STATE_DESERIALIZERS.get(key_type)
        if (not deserializer):
            raise AttributeError('Key not found on redis')
        self._parse_set_type(deserializer, key)
    else:
        value = self.client.get(key)
        try:
            self._parse_state_json(value)
        except UnicodeDecodeError:
            self._parse_state_proto(key_type, value)