memcache-async

Crates.iomemcache-async
lib.rsmemcache-async
version0.8.0
sourcesrc
created_at2019-03-17 05:58:26.971856
updated_at2024-06-06 22:31:20.884277
descriptionA no-frills async memcached client for Rust.
homepagehttps://github.com/vavrusa/memcache-async
repositoryhttps://github.com/vavrusa/memcache-async
max_upload_size
id121519
size35,360
Marek VavruĊĦa (vavrusa)

documentation

https://docs.rs/memcache-async

README

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

Commit count: 66

cargo fmt