1 2 3 4 5 6 7 8 9
use cached::macros::cached; // `durable` configures the redb disk-backed concurrent store. #[cached(durable = true)] fn my_fn(x: u32) -> u32 { x * 2 } fn main() {}