ringline-momento
ringline-native Momento cache client.
A multiplexed Momento protosocket client (length-delimited protobuf over TLS)
built on ringline::ConnCtx for use inside the
ringline async runtime.
Quick Start
use ;
async
Features
- Fully multiplexed: multiple requests in-flight on a single connection, correlated by message ID
- Sequential API:
get,setconvenience methods that fire + recv internally - Fire/recv API:
fire_get,fire_setreturn a message ID;recvreturns the next completed operation - Connection pooling: round-robin pool with lazy reconnection
- Instrumentation: optional per-command callbacks and built-in histogram metrics
Copy Semantics
| Path | Copies | Mechanism |
|---|---|---|
| Recv (values) | 1 | with_data() + protobuf decode. Bytes::copy_from_slice() for each extracted field. |
| Send (requests) | 3-4 | Layered protobuf encoding: each encode() layer allocates a new Vec<u8> and copies the previous level. Then send_nowait() copies into the send pool. |
All Momento connections use TLS, which adds encryption copies on the send path.