Generates the file path for a given wiki cache.
(owner: str, repo: str, repo_type: str, language: str)
| 406 | os.makedirs(WIKI_CACHE_DIR, exist_ok=True) |
| 407 | |
| 408 | def get_wiki_cache_path(owner: str, repo: str, repo_type: str, language: str) -> str: |
| 409 | """Generates the file path for a given wiki cache.""" |
| 410 | filename = f"deepwiki_cache_{repo_type}_{owner}_{repo}_{language}.json" |
| 411 | return os.path.join(WIKI_CACHE_DIR, filename) |
| 412 | |
| 413 | async def read_wiki_cache(owner: str, repo: str, repo_type: str, language: str) -> Optional[WikiCacheData]: |
| 414 | """Reads wiki cache data from the file system.""" |
no outgoing calls
no test coverage detected