MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / __init__

Method __init__

codewiki/src/fe/cache_manager.py:19–24  ·  view source on GitHub ↗
(self, cache_dir: str = None, cache_expiry_days: int = None)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

load_cache_indexMethod · 0.95

Tested by

no test coverage detected