Trait async_graphql::dataloader::CacheFactory [−][src]
pub trait CacheFactory: Send + Sync + 'static { 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; }
This is supported on crate feature
dataloader
only.Expand description
Factory for creating cache storage.
Required methods
Implementors
impl CacheFactory for LruCache
[src]
impl CacheFactory for LruCache
[src]impl CacheFactory for NoCache
[src]
impl CacheFactory for NoCache
[src]impl<S: Send + Sync + BuildHasher + Default + 'static> CacheFactory for HashMapCache<S>
[src]
impl<S: Send + Sync + BuildHasher + Default + 'static> CacheFactory for HashMapCache<S>
[src]