[][src]Function memcached::connects_withconnects_with

pub fn connects_withconnects_with(
    urls: Vec<String>,
    pool_size: u64,
    hash_function: fn(_: &str) -> usize
) -> Result<Client>

创建一个client,可以指定多个url,连接池大小,key hash连接池的函数

Example

let client = memcached::Client::connects_with(vec!["memcache://127.0.0.1:12345".to_owned()], 2, |s|1).unwrap();