cached 3.1.1

Generic cache implementations and simplified function memoization
Documentation
1
2
3
4
5
6
7
8
use cached::macros::cached;

#[cached(ttl = "core::time::Duration::from_secs(")]
fn f() -> u32 {
    0
}

fn main() {}