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

Method remove_from_cache

codewiki/src/fe/cache_manager.py:99–104  ·  view source on GitHub ↗

Remove documentation from cache.

(self, repo_url: str)

Source from the content-addressed store, hash-verified

97 self.save_cache_index()
98
99 def remove_from_cache(self, repo_url: str):
100 """Remove documentation from cache."""
101 repo_hash = self.get_repo_hash(repo_url)
102 if repo_hash in self.cache_index:
103 del self.cache_index[repo_hash]
104 self.save_cache_index()
105
106 def cleanup_expired_cache(self):
107 """Remove expired cache entries."""

Callers 1

get_cached_docsMethod · 0.95

Calls 2

get_repo_hashMethod · 0.95
save_cache_indexMethod · 0.95

Tested by

no test coverage detected