Expand description
r-cache
r-cache is an in memory key value store. It is thread safe and values can have expiry times.
Example
use r_cache::cache::Cache;
use std::time::Duration;
const KEY: i8 = 0;
const VALUE: &str = "VALUE";
let cache = Cache::new(Some(Duration::from_secs(2 * 60 * 60)));
cache.set(KEY, VALUE, None);
println!("{}", cache.get(&KEY).unwrap())
}