19 releases

new 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

#219 in Database interfaces

Download history 6629/week @ 2024-11-22 5810/week @ 2024-11-29 5387/week @ 2024-12-06 7032/week @ 2024-12-13 3166/week @ 2024-12-20 3924/week @ 2024-12-27 6660/week @ 2025-01-03 4450/week @ 2025-01-10 4398/week @ 2025-01-17 4002/week @ 2025-01-24 4548/week @ 2025-01-31 4787/week @ 2025-02-07 3841/week @ 2025-02-14 4848/week @ 2025-02-21 3550/week @ 2025-02-28 3937/week @ 2025-03-07

17,093 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

~2.8–8.5MB
~65K SLoC