cached 1.1.0

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

#[concurrent_cached(map_error = "|e| e", disk = true, ttl = 1, create = "{ }")]
fn my_fn(k: i32) -> Result<i32, String> {
    Ok(k)
}

fn main() {}