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

#523 in Database interfaces

Download history 6710/week @ 2024-11-20 5959/week @ 2024-11-27 5655/week @ 2024-12-04 6480/week @ 2024-12-11 5070/week @ 2024-12-18 3665/week @ 2024-12-25 5241/week @ 2025-01-01 5089/week @ 2025-01-08 4479/week @ 2025-01-15 4075/week @ 2025-01-22 3890/week @ 2025-01-29 5256/week @ 2025-02-05 3968/week @ 2025-02-12 4866/week @ 2025-02-19 3748/week @ 2025-02-26 3435/week @ 2025-03-05

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

~0.6–0.8MB
~15K SLoC