pub trait CacheFactory:
Send
+ Sync
+ 'static {
// Required method
fn create<K, V>(&self) -> Box<dyn CacheStorage<Key = K, Value = V>>
where K: Send + Sync + Clone + Eq + Hash + 'static,
V: Send + Sync + Clone + 'static;
}
Available on crate feature
dataloader
only.Expand description
Factory for creating cache storage.
Required Methods§
Object Safety§
This trait is not object safe.