(self, cache_dir: str = None, cache_expiry_days: int = None)
| 17 | """Manages documentation cache.""" |
| 18 | |
| 19 | def __init__(self, cache_dir: str = None, cache_expiry_days: int = None): |
| 20 | self.cache_dir = Path(cache_dir or WebAppConfig.CACHE_DIR) |
| 21 | self.cache_expiry_days = cache_expiry_days or WebAppConfig.CACHE_EXPIRY_DAYS |
| 22 | self.cache_dir.mkdir(parents=True, exist_ok=True) |
| 23 | self.cache_index: Dict[str, CacheEntry] = {} |
| 24 | self.load_cache_index() |
| 25 | |
| 26 | def load_cache_index(self): |
| 27 | """Load cache index from disk.""" |
nothing calls this directly
no test coverage detected