fn put(&self, key: &str, entry: CacheWrite) -> SFuture<Duration> {
        let key = key.to_owned();
        let me = self.clone();
        Box::new(self.pool.spawn_fn(move || {
            let start = Instant::now();
            let c = me.connect()?;
            let d = entry.finish()?;
            c.set::<&str, Vec<u8>, ()>(&key, d)?;
            Ok(start.elapsed())
        }))
    }
/// Open a connection and store a object in the cache.
Open a connection and store a object in the cache.
Open a connection and store a object in the cache .
fn put(&self, key: &str, entry: CacheWrite) -> SFuture<Duration> {
        let key = key.to_owned();
        let me = self.clone();
        Box::new(self.pool.spawn_fn(move || {
            let start = Instant::now();
            let c = me.connect()?;
            let d = entry.finish()?;
            c.set::<&str, Vec<u8>, ()>(&key, d)?;
            Ok(start.elapsed())
        }))
    }
fn put ( & self , key : & str , entry : CacheWrite ) -> SFuture < Duration > { let key = key . to_owned ( ) ; let me = self . clone ( ) ; Box :: new ( self . pool . spawn_fn ( move | | { let start = Instant :: now ( ) ; let c = me . connect ( ) ? ; let d = entry . finish ( ) ? ; c . set :: < & str , Vec < u8 > , ( ) > ( & key , d ) ? ; Ok ( start . elapsed ( ) ) } ) ) }
Open a connection and store a object in the cache.
Open a connection and store a object in the cache .
&self
key
&str
entry
CacheWrite