    def __init__(
        self,
        cache_dir,
        lru_retention_hours=72,
        cleanup_max_age_seconds=3600,
        debug=True,
    ):
        """Filesystem based build cache.

        For method docstrings, see parent class.

        Args:
            cache_dir (str): Path to store cache data below. Should be an empty, temporary directory with enough space to hold the cache contents. Will be written to and deleted in!
            lru_retention_hours (int, optional): Retention time for *unused* cache entries. Defaults to 72.
            cleanup_max_age_seconds (int, optional): Minimum time between cache cleanups in seconds. After this time, a new cleanup gets triggered on next cache retrieval. Defaults to 3600.
            debug (bool, optional): Whether to enable debugging cache key creation ( see debug parameter of create_dir_hash). Defaults to True. May be left at True, as it is usually helpful and  does not hurt performance.
        """
        self.cache_dir = cache_dir
        self.lru_retention_hours = lru_retention_hours
        self.cleanup_max_age_seconds = cleanup_max_age_seconds
        self.debug = debug
        _LOGGER.info(
            f"Using file-based build cache, cache directory = {self.cache_dir}"
        )
Filesystem based build cache.

For method docstrings, see parent class.

Args:
cache_dir (str): Path to store cache data below. Should be an empty, temporary directory with enough space to hold the cache contents. Will be written to and deleted in!
lru_retention_hours (int, optional): Retention time for *unused* cache entries. Defaults to 72.
cleanup_max_age_seconds (int, optional): Minimum time between cache cleanups in seconds. After this time, a new cleanup gets triggered on next cache retrieval. Defaults to 3600.
debug (bool, optional): Whether to enable debugging cache key creation ( see debug parameter of create_dir_hash). Defaults to True. May be left at True, as it is usually helpful and  does not hurt performance.
python/aitemplate/backend/build_cache_base.py