hydracache 0.46.0

User-facing HydraCache runtime crate.
Documentation
1
2
3
4
5
6
7
8
9
10
#[hydracache::cacheable(
    cache = cache,
    key_segments = ["value", id],
    ttl_secs = 60
)]
async fn load_value(cache: &hydracache::HydraCache, id: u64) -> u64 {
    id
}

fn main() {}