Struct reactor_cache::ReactorCache
[−]
[src]
pub struct ReactorCache<K, V, E> { /* fields omitted */ }
Methods
impl<K: Clone + Eq + Hash, V: Weighted, E: Clone + Debug> ReactorCache<K, V, E>
[src]
fn new(capacity: usize, handle: Handle) -> Self where K: 'static, V: 'static, E: 'static
fn stats(&self) -> Receiver<CacheStats>
fn get(&self, k: K) -> GetHandle<V, E>
fn get_if_resident(&self, k: K) -> GetHandle<V, E>
fn load_fn<F, T>(&self, k: K, f: F) -> LoadHandle<Lazy<F, T>, V, E> where F: 'static + Send + FnOnce() -> T,
T: 'static + IntoFuture<Item=V, Error=E>,
T::Future: 'static + Send
T: 'static + IntoFuture<Item=V, Error=E>,
T::Future: 'static + Send