[−][src]Function cacache::rm::entry
pub async fn entry<'_, P: AsRef<Path>>(
cache: P,
key: &'_ str
) -> Result<(), Error>
Removes an individual index entry. The associated content will be left intact.
Example
let sri = cacache::put::data("./my-cache", "my-key", b"hello").await?; cacache::rm::entry("./my-cache", "my-key").await?; // This fails: cacache::get::data("./my-cache", "my-key").await?; // But this succeeds: cacache::get::data_hash("./my-cache", &sri).await?;