pub fn write_cache(path: &Path, schema: &Schema) -> Result<(), String>
Serialize a schema to the cache file, creating parent dirs as needed.