18 releases

0.8.0 Jun 6, 2024
0.7.0 Dec 29, 2023
0.6.4 May 27, 2022
0.6.2 Mar 21, 2022
0.1.0 Mar 17, 2019

#240 in Database interfaces

Download history 8110/week @ 2024-07-22 8450/week @ 2024-07-29 7967/week @ 2024-08-05 8299/week @ 2024-08-12 8171/week @ 2024-08-19 8625/week @ 2024-08-26 7777/week @ 2024-09-02 6767/week @ 2024-09-09 8869/week @ 2024-09-16 8961/week @ 2024-09-23 8711/week @ 2024-09-30 8836/week @ 2024-10-07 8041/week @ 2024-10-14 7620/week @ 2024-10-21 6800/week @ 2024-10-28 6398/week @ 2024-11-04

29,170 downloads per month
Used in bb8-memcached

MIT license

28KB
559 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
~15K SLoC