pub trait Cacher {
    // Provided methods
    fn cache_store(&self, _key: &str, _val: &str) { ... }
    fn cache_get(&self, _key: &str) -> Option<String> { ... }
}
Expand description

Cache interface that crate used.

Note: must implement it with multi-thread safety.

Provided Methods§

source

fn cache_store(&self, _key: &str, _val: &str)

source

fn cache_get(&self, _key: &str) -> Option<String>

Implementors§