1 2 3 4 5 6 7 8 9
use hydracache::{cacheable, HydraCache}; fn main() { let cache = HydraCache::local().build(); let _future = cacheable!( cache = cache, load = || async { Ok::<_, std::io::Error>(1_u64) }, ); }