cached 3.1.0

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

// `disk_dir` sets the redb database directory on the concurrent disk store.
#[once(disk_dir = "/tmp/cached-ui")]
fn my_fn(x: u32) -> u32 {
    x * 2
}

fn main() {}