def METHOD_NAME(self, force: bool = False) -> None:
    if self._last_updated_time.elapsed(False) > self._update_frequency or force:
        with open(self._file_path, "w") as f:
            self._dump_environments(f)
        self._last_updated_time = create_timer()