[−][src]Function cacache::rm::content
pub async fn content<'_, P: AsRef<Path>>(
cache: P,
sri: &'_ Integrity
) -> Result<(), Error>
Removes an individual content entry. Any index entries pointing to this content will become invalidated.
Example
let sri = cacache::put::data("./my-cache", "my-key", b"hello").await?; cacache::rm::entry("./my-cache", "my-key").await?; // These fail: cacache::get::data("./my-cache", "my-key").await?; cacache::get::data_hash("./my-cache", &sri).await?; // But this succeeds: cacache::get::entry("./my-cache", "my-key").await?;