[][src]Function cacache::rm::all

pub async fn all<P: AsRef<Path>>(cache: P) -> Result<(), Error>

Removes entire contents of the cache, including temporary files, the entry index, and all content data.

Example

let sri = cacache::put::data("./my-cache", "my-key", b"hello").await?;

cacache::rm::entry("./my-cache", "my-key").await?;

// These all fail:
cacache::get::data("./my-cache", "my-key").await?;
cacache::get::entry("./my-cache", "my-key").await?;
cacache::get::data_hash("./my-cache", &sri).await?;