MCPcopy
hub / github.com/MinishLab/semble / clear_cache

Function clear_cache

src/semble/cache.py:83–87  ·  view source on GitHub ↗

Clears the cache for the given path.

(path: str)

Source from the content-addressed store, hash-verified

81
82
83def clear_cache(path: str) -> None:
84 """Clears the cache for the given path."""
85 index_path = find_index_from_cache_folder(path)
86 if index_path.exists():
87 shutil.rmtree(index_path)
88
89
90def save_index_to_cache(index: "SembleIndex", path: str) -> None:

Callers 1

test_clear_cacheFunction · 0.90

Calls 1

Tested by 1

test_clear_cacheFunction · 0.72