11 unstable releases

Uses old Rust 2015

0.6.0 Jan 7, 2021
0.5.0 Dec 28, 2019
0.4.0 Aug 25, 2019
0.3.0 Jan 4, 2019
0.1.0 Jan 18, 2017

#77 in #connection-pool

Download history 262/week @ 2024-07-21 276/week @ 2024-07-28 243/week @ 2024-08-04 174/week @ 2024-08-11 98/week @ 2024-08-18 96/week @ 2024-08-25 140/week @ 2024-09-01 250/week @ 2024-09-08 132/week @ 2024-09-15 196/week @ 2024-09-22 112/week @ 2024-09-29 24/week @ 2024-10-06 51/week @ 2024-10-13 58/week @ 2024-10-20 67/week @ 2024-10-27 76/week @ 2024-11-03

256 downloads per month
Used in 4 crates (3 directly)

MIT license

1MB
1.5K SLoC

JavaScript 1K SLoC // 0.0% comments Rust 63 SLoC

Contains (WOFF font, 120KB) target/doc/Heuristica-Italic.woff, (WOFF font, 90KB) target/doc/FiraSans-Medium.woff, (WOFF font, 92KB) target/doc/FiraSans-Regular.woff, (WOFF font, 56KB) target/doc/SourceCodePro-Regular.woff, (WOFF font, 56KB) target/doc/SourceCodePro-Semibold.woff, (WOFF font, 49KB) target/doc/SourceSerifPro-Bold.woff and 1 more.

r2d2-memcache

Build Status Latest Version Docs

Install

Add this to your Cargo.toml:

[dependencies]
r2d2-memcache = "0.2.0"

Basic Usage

extern crate r2d2_memcache;

fn main() {
    let manager = r2d2_memcache::MemcacheConnectionManager::new("memcache://localhost:11211");
    let pool = r2d2_memcache::r2d2::Pool::builder().max_size(15).build(manager).unwrap();

    let mut conn = pool.get().unwrap();
    conn.flush().unwrap();
    let value = "bar";
    conn.set("foo_get", value, 10).unwrap();
    let result: String = conn.get("foo_get").unwrap().unwrap();
    assert!(result == "bar");
}

License

Dependencies

~3–9MB
~80K SLoC