Function cacache::write_hash_sync
source · pub fn write_hash_sync<P, D>(cache: P, data: D) -> Result<Integrity>
Expand description
Writes data
to the cache
synchronously, skipping associating a key with it.
§Example
use std::io::Read;
fn main() -> cacache::Result<()> {
let data = cacache::write_hash_sync("./my-cache", b"hello")?;
Ok(())
}