fn max_size(&self) -> Option<u64> {
        self.connect().ok()
            .and_then(|c| cmd("CONFIG").arg("GET").arg("maxmemory").query(&c).ok())
            .and_then(|h: HashMap<String, usize>| h.get("maxmemory").map(|s| *s))
            .and_then(|s| {
                if s != 0 {
                    Some(s as u64)
                } else {
                    None
                }
            })
    }
/// Returns the maximum cache size. This value is read via
/// the Redis CONFIG command (maxmemory). If the server has no
/// configured limit, the result is None.
Returns the maximum cache size. This value is read via
the Redis CONFIG command (maxmemory). If the server has no
configured limit, the result is None.
Returns the maximum cache size . This value is read via the Redis CONFIG command ( maxmemory ) . If the server has no configured limit the result is None .
fn max_size(&self) -> Option<u64> {
        self.connect().ok()
            .and_then(|c| cmd("CONFIG").arg("GET").arg("maxmemory").query(&c).ok())
            .and_then(|h: HashMap<String, usize>| h.get("maxmemory").map(|s| *s))
            .and_then(|s| {
                if s != 0 {
                    Some(s as u64)
                } else {
                    None
                }
            })
    }
fn max_size ( & self ) -> Option < u64 > { self . connect ( ) . ok ( ) . and_then ( | c | cmd ( " " ) . arg ( " " ) . arg ( " " ) . query ( & c ) . ok ( ) ) . and_then ( | h : HashMap < String , usize > | h . get ( " " ) . map ( | s | * s ) ) . and_then ( | s | { if s != 0 { Some ( s as u64 ) } else { None } } ) }
Returns the maximum cache size.
Returns the maximum cache size .
&self