(entry: "SequenceDiskCache.Entry")
| 12521 | |
| 12522 | @staticmethod |
| 12523 | def _touch(entry: "SequenceDiskCache.Entry") -> None: |
| 12524 | entry.last_accessed = time.time() |
| 12525 | try: |
| 12526 | os.utime(entry.path, None) |
| 12527 | except OSError: |
| 12528 | pass |
| 12529 | |
| 12530 | def _oldest_entry(self) -> Optional["SequenceDiskCache.Entry"]: |
| 12531 | if not self._entries_by_id: |