pub fn write_hash<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_sync::Result<()> {
let data = cacache_sync::write_hash("./my-cache", b"hello")?;
Ok(())
}