Crates.io | deadpool-memcached |
lib.rs | deadpool-memcached |
version | 0.3.2 |
source | src |
created_at | 2020-08-13 20:24:54.41712 |
updated_at | 2024-05-04 09:26:46.541763 |
description | Dead simple async pool for memcached |
homepage | |
repository | https://github.com/bikeshedder/deadpool |
max_upload_size | |
id | 276333 |
size | 18,984 |
Deadpool is a dead simple async pool for connections and objects of any type.
This crate implements a deadpool
manager for async-memcached
.
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);
}
Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).