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

#2534 in Database interfaces

Download history 200/week @ 2025-03-09 123/week @ 2025-03-16 151/week @ 2025-03-23 98/week @ 2025-03-30 106/week @ 2025-04-06 192/week @ 2025-04-13 119/week @ 2025-04-20 114/week @ 2025-04-27 84/week @ 2025-05-04 88/week @ 2025-05-11 39/week @ 2025-05-18 50/week @ 2025-05-25 43/week @ 2025-06-01 75/week @ 2025-06-08 71/week @ 2025-06-15 98/week @ 2025-06-22

289 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–9.5MB
~81K SLoC