def get_key(self, raw_key: Tuple[(Hashable, ...)]) -> Union[(int, str)]:
    if (self.db is None):
        key = hash(raw_key)
    else:
        key = sha256(str(raw_key).encode()).hexdigest()
    return key
def get_key(self, raw_key: Tuple[(Hashable, ...)]) -> Union[(int, str)]:
    if (self.db is None):
        key = hash(raw_key)
    else:
        key = sha256(str(raw_key).encode()).hexdigest()
    return key