pub fn write_cache(key: &str, data: &[u8]) -> bool
Write data to cache with the given key (filename). Returns true if writing succeeded.