hydracache 0.53.1

User-facing HydraCache runtime crate.
Documentation
1
2
3
4
5
6
7
8
9
use hydracache::{cacheable_loader, HydraCache};

fn main() {
    let cache = HydraCache::local().build();
    let _future = cacheable_loader!(
        cache = cache,
        load = || async { Ok::<_, std::io::Error>(1_u64) },
    );
}