16 releases

0.6.4 May 27, 2022
0.6.2 Mar 21, 2022
0.6.1 Oct 1, 2021
0.6.0 Jul 14, 2021
0.1.0 Mar 17, 2019

#97 in Database interfaces

Download history 1011/week @ 2022-11-28 827/week @ 2022-12-05 971/week @ 2022-12-12 1051/week @ 2022-12-19 219/week @ 2022-12-26 1467/week @ 2023-01-02 2275/week @ 2023-01-09 3077/week @ 2023-01-16 3596/week @ 2023-01-23 3656/week @ 2023-01-30 4634/week @ 2023-02-06 4677/week @ 2023-02-13 4169/week @ 2023-02-20 5233/week @ 2023-02-27 5195/week @ 2023-03-06 3939/week @ 2023-03-13

18,944 downloads per month
Used in bb8-memcached

MIT license

19KB
403 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.5"

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

~1MB
~16K SLoC