fn write_json<T>( path: &Path, entry_key: Option<String>, value: &T, ) -> Result<(), CacheError>where T: Serialize,