fast-cache 0.1.0

Embedded-first thread-per-core in-memory cache with optional Redis-compatible server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Wire protocol codecs.
//!
//! [`RespCodec`] parses and encodes RESP frames for Redis-compatible clients.
//! [`FastCodec`] handles the crate's native binary protocol used by
//! fast-cache clients that want lower framing overhead.

mod fast;
mod resp;

pub use fast::{
    FAST_FLAG_KEY_HASH, FAST_FLAG_KEY_TAG, FAST_FLAG_ROUTE_SHARD, FAST_PROTOCOL_VERSION,
    FAST_REQUEST_MAGIC, FAST_RESPONSE_MAGIC, FastCodec, FastCommand, FastCommandKind, FastRequest,
    FastRequestDecodeResult, FastResponse, FastResponseDecodeResult,
};
pub use resp::{
    BorrowedCommandFrame, CommandFrame, CommandSpanFrame, Frame, RespCodec,
    RespCommandDecodeResult, RespCommandSpanDecodeResult, RespDecodeResult,
};