1 2 3 4 5 6 7 8
use cached::macros::cached; #[cached(ttl_secs = 60, force_refresh = true)] fn f(k: i32) -> i32 { k } fn main() {}