#async #memcached #pool

deadpool-memcached

Dead simple async pool for memcached

2 releases

0.1.2 Sep 13, 2020
0.1.0 Aug 13, 2020

#11 in #memcached

Download history 3/week @ 2021-06-05 1/week @ 2021-06-26 7/week @ 2021-07-03 7/week @ 2021-07-17 6/week @ 2021-07-31 2/week @ 2021-08-14 15/week @ 2021-08-21 47/week @ 2021-08-28 34/week @ 2021-09-04 33/week @ 2021-09-11

58 downloads per month

MIT license

4KB

Deadpool for Memcached Latest Version

Deadpool is a dead simple async pool for connections and objects of any type.

This crate implements a deadpool manager for async-memcached.

Example

use deadpool_memcached::Manager;

#[tokio::main]
async fn main() {
    let manager = Manager::new("localhost:11211");
    let mut client = pool.get().await.unwrap();
    println!("version: {:?}", client.version().await);
}

License

Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).


lib.rs:

Deadpool for Memcache

Deadpool is a dead simple async pool for connections and objects of any type.

This crate implements a deadpool manager for async-memcached. We specifically force users to connect via TCP as there is no existing mechanism to parameterize how to deal with different unerlying connection types at the moment.

Dependencies

~5.5MB
~92K SLoC