cached 3.0.0-rc.4

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

#[cached(force_refresh = "{ this is not ; an expr }")]
fn f(x: i32) -> i32 {
    x
}

fn main() {}