A no-frills async memcached client for Rust.
open sourceMITself-hostablefree
memcache-async implements memcached's ASCII protocol on any stream that implements AsyncRead and AsyncWrite, with either the futures or the tokio I/O traits (a feature picks which). It has get, multi-get, set, add, append, delete, increment and decrement, compare-and-swap and flush over TCP, UDP or a Unix socket, and works with byte slices: the caller serializes values. It talks to one connection at a time; connection pooling, several servers and key hashing are left to the caller. set and delete are sent with noreply.
Problems it solves
- I need an async memcached client for a Rust web server on tokio
- cache rendered pages and query results in memcached from Rust
- a small memcached protocol implementation I can wrap in my own timeouts, pooling and failover
- talk to memcached from Rust over a Unix socket or UDP
- write a cache driver for my Rust web framework backed by memcached
Features
- ASCII protocol
- futures or tokio I/O traits
- TCP, UDP and Unix socket streams
- get, multi-get, set, add, append, delete
- increment, decrement and compare-and-swap
Capabilities
| Has official SDKs | plan not known |
|---|
Alternatives
The same job
These do what memcache-async does.
- Memcached A high performance multithreaded event-based key/value cache store intended to be used in a distributed system.
- Amazon ElastiCache Fully managed, Valkey-, Memcached-, and Redis OSS-compatible caching service