MCPcopy
hub / github.com/microsoft/qlib / clear_cache

Method clear_cache

qlib/data/cache.py:313–320  ·  view source on GitHub ↗
(cache_path: Union[str, Path])

Source from the content-addressed store, hash-verified

311
312 @staticmethod
313 def clear_cache(cache_path: Union[str, Path]):
314 for p in [
315 cache_path,
316 cache_path.with_suffix(".meta"),
317 cache_path.with_suffix(".index"),
318 ]:
319 if p.exists():
320 p.unlink()
321
322 @staticmethod
323 def get_cache_dir(dir_name: str, freq: str = None) -> Path:

Callers 4

gen_expression_cacheMethod · 0.80
updateMethod · 0.80
gen_dataset_cacheMethod · 0.80
updateMethod · 0.80

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected