pub trait ConcurrentCache<K, V>: Send + Syncwhere
K: CacheKey,
V: CacheValue,{
// Required method
fn get(&self, key: &K) -> V;
}Expand description
A thread-safe cache that returns a value for any key, fetching on miss.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".