[][src]Function cacache::rm::entry_sync

pub fn entry_sync<P: AsRef<Path>>(cache: P, key: &str) -> Result<(), Error>

Removes an individual index entry synchronously. The associated content will be left intact.

Example

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

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

// This fails:
cacache::get::data_sync("./my-cache", "my-key")?;

// But this succeeds:
cacache::get::data_hash_sync("./my-cache", &sri)?;