memory-cache-rs
Simple local in-memory cache for Rust.
Example
use MemoryCache;
use Duration;
// Full scan frequency to discover the expired entries.
let scan_frequency = from_secs;
let mut cache = new;
let key: &'static str = "key";
let value: &'static str = "Hello, World!";
// `None` - if the value must be kept forever.
let key_expiration = Some;
cache.set;
assert_eq!;