pub fn copy_unchecked_sync<P, K, Q>(cache: P, key: K, to: Q) -> Result<u64>Expand description
Copies a cache entry by key to a specified location. Does not verify cache contents while copying.
On platforms that support it, this will create a copy-on-write “reflink” with a full-copy fallback.
§Example
use std::io::Read;
fn main() -> cacache::Result<()> {
cacache::copy_unchecked_sync("./my-cache", "my-key", "./my-hello.txt")?;
Ok(())
}