pub fn map_cache_data<R, F>( hash: &Hash, data_cache: &DataCache, f: F, ) -> Result<R>where F: FnOnce(&Data) -> Result<R>,
Get hash data from data_cache, return result of f(data)
hash
data_cache
To prevent data copy, data is not returned
data