cacache::put
pub fn data<P, D, K>(cache: P, key: K, data: D) -> Result<Integrity, Error> where P: AsRef<Path>, D: AsRef<[u8]>, K: AsRef<str>,
Writes data to the cache, indexing it under key.
data
cache
key