#cache #async #memcached

memcache-async

A no-frills async memcached client for Rust

19 releases

0.9.0 Mar 12, 2025
0.8.0 Jun 6, 2024
0.7.0 Dec 29, 2023
0.6.4 May 27, 2022
0.1.0 Mar 17, 2019

#223 in Database interfaces

Download history 5538/week @ 2025-03-28 4985/week @ 2025-04-04 5690/week @ 2025-04-11 4926/week @ 2025-04-18 4596/week @ 2025-04-25 4961/week @ 2025-05-02 4793/week @ 2025-05-09 6210/week @ 2025-05-16 6273/week @ 2025-05-23 12689/week @ 2025-05-30 12328/week @ 2025-06-06 12536/week @ 2025-06-13 12240/week @ 2025-06-20 12694/week @ 2025-06-27 10920/week @ 2025-07-04 12117/week @ 2025-07-11

50,522 downloads per month
Used in bb8-memcached

MIT license

32KB
639 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

~3–11MB
~101K SLoC