def maybe_cleanup(
        self, lru_retention_hours: int = 72, cleanup_max_age_seconds: int = 3600
    ):
        """See docstring of implemented method interface in parent class"""
        last_cleaned_seconds = file_age(os.path.join(self.cache_dir, ".last_cleaned"))
        if last_cleaned_seconds > cleanup_max_age_seconds:
            self.cleanup(lru_retention_hours)
See docstring of implemented method interface in parent class
python/aitemplate/backend/build_cache_base.py