#cache #async #memcached

memcache-async

A no-frills async memcached client for Rust

21 releases

new 0.10.1 Mar 12, 2026
0.10.0 Dec 30, 2025
0.9.0 Mar 12, 2025
0.8.0 Jun 6, 2024
0.1.0 Mar 17, 2019

#147 in Database interfaces

Download history 7818/week @ 2025-11-20 8268/week @ 2025-11-27 6946/week @ 2025-12-04 6241/week @ 2025-12-11 6898/week @ 2025-12-18 1774/week @ 2025-12-25 7912/week @ 2026-01-01 13023/week @ 2026-01-08 14120/week @ 2026-01-15 15740/week @ 2026-01-22 21899/week @ 2026-01-29 17011/week @ 2026-02-05 16960/week @ 2026-02-12 22496/week @ 2026-02-19 33223/week @ 2026-02-26 28604/week @ 2026-03-05

104,242 downloads per month
Used in 8 crates (3 directly)

MIT license

36KB
740 lines

memcache-async

Build Status Codecov Status Crates.io MIT licensed Docs

memcache-async is an async memcached client implementation.

Install

The crate is called memcache-async and you can depend on it via cargo:

[dependencies]
memcache-async = "0.7"

Features

The crate implements the protocol on any stream implementing AsyncRead + AsyncWrite.

  • Binary protocol
  • ASCII protocol
  • TCP connection
  • UDP connection
  • UNIX Domain socket connection
  • Automatically compress
  • Automatically serialize to JSON / msgpack etc.
  • Typed interface
  • Mutiple server support with custom key hash algorithm
  • SASL authority (plain)

Basic usage

The crate works with byte slices for values, the caller should implement deserialization if desired. See examples for usage. E.g. after start a memcached instance locally, the following example code could be run:

cargo run --example tcp-simple 127.0.0.1:11211

License

MIT

Dependencies

~2.4–3.5MB
~52K SLoC