MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / clear_cache

Function clear_cache

fendermint/app/src/cmd/proof_cache.rs:200–209  ·  view source on GitHub ↗
(db_path: &Path)

Source from the content-addressed store, hash-verified

198}
199
200fn clear_cache(db_path: &Path) -> anyhow::Result<()> {
201 println!("=== Clear Cache ===");
202 println!("Database: {}", db_path.display());
203 println!();
204
205 let persistence = ProofCachePersistence::open(db_path)?;
206 persistence.clear_all_entries()?;
207
208 Ok(())
209}

Callers 1

Calls 2

openFunction · 0.85
clear_all_entriesMethod · 0.80

Tested by

no test coverage detected