17 releases

0.7.0 Dec 29, 2023
0.6.4 May 27, 2022
0.6.3 Apr 6, 2022
0.6.2 Mar 21, 2022
0.1.0 Mar 17, 2019

#289 in Database interfaces

Download history 2772/week @ 2023-12-18 945/week @ 2023-12-25 2107/week @ 2024-01-01 2971/week @ 2024-01-08 2839/week @ 2024-01-15 2556/week @ 2024-01-22 2862/week @ 2024-01-29 3195/week @ 2024-02-05 4070/week @ 2024-02-12 2503/week @ 2024-02-19 2533/week @ 2024-02-26 3803/week @ 2024-03-04 6741/week @ 2024-03-11 7964/week @ 2024-03-18 6159/week @ 2024-03-25 6577/week @ 2024-04-01

27,564 downloads per month
Used in bb8-memcached

MIT license

21KB
437 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

~1MB
~16K SLoC