def METHOD_NAME(self, params: Tuple, **record):
    if self.key_factor not in record:
        raise ValueError(f"key factor {self.key_factor} is not provided.")
    self.records[params] = record
    self.dump_records()