MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / get_wiki_cache_path

Function get_wiki_cache_path

api/api.py:408–411  ·  view source on GitHub ↗

Generates the file path for a given wiki cache.

(owner: str, repo: str, repo_type: str, language: str)

Source from the content-addressed store, hash-verified

406os.makedirs(WIKI_CACHE_DIR, exist_ok=True)
407
408def 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
413async def read_wiki_cache(owner: str, repo: str, repo_type: str, language: str) -> Optional[WikiCacheData]:
414 """Reads wiki cache data from the file system."""

Callers 3

read_wiki_cacheFunction · 0.85
save_wiki_cacheFunction · 0.85
delete_wiki_cacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected