Skip to main content

Module cache

Module cache 

Source
Expand description

On-disk cache for benchmark relation files.

Relation files referenced by a BenchmarkDefinition are downloaded lazily into the platform cache directory under <cache_dir>/kermit/benchmarks/<benchmark>/<relation>.parquet. On Linux this resolves to ~/.cache/kermit/benchmarks/….

ensure_cached is the entry point; clean_benchmark and clean_all remove cached files.

Functions§

base_cache_dir
Returns the base cache directory for kermit benchmarks ($XDG_CACHE_HOME/kermit/benchmarks on Linux).
cache_dir
Returns the cache directory for a specific benchmark.
clean_all
Removes the entire kermit benchmark cache.
clean_benchmark
Removes the cache directory for a specific benchmark.
ensure_cached
Ensures all relations for a benchmark are downloaded and cached.
is_cached
Returns true if all relation files for the benchmark are cached.
relation_cache_path
Returns the expected path for a cached relation file.