Commits the state of the registry cache to the remote registry store.
(self)
| 1365 | return proto_registry_utils.list_project_metadata(registry_proto, project) |
| 1366 | |
| 1367 | def commit(self): |
| 1368 | """Commits the state of the registry cache to the remote registry store.""" |
| 1369 | if self.cached_registry_proto: |
| 1370 | self._registry_store.update_registry_proto(self.cached_registry_proto) |
| 1371 | if self._file_path is not None and self._file_path.exists(): |
| 1372 | try: |
| 1373 | self._file_mtime = self._file_path.stat().st_mtime |
| 1374 | except (OSError, FileNotFoundError): |
| 1375 | pass |
| 1376 | |
| 1377 | def refresh(self, project: Optional[str] = None): |
| 1378 | """Refreshes the state of the registry cache by fetching the registry state from the remote registry store.""" |