fast_cache/protocol.rs
1//! Wire protocol codecs.
2//!
3//! [`RespCodec`] parses and encodes RESP frames for Redis-compatible clients.
4//! [`FastCodec`] handles the crate's native binary protocol used by
5//! fast-cache clients that want lower framing overhead.
6
7mod fast;
8mod resp;
9
10pub use fast::{
11 FAST_FLAG_KEY_HASH, FAST_FLAG_KEY_TAG, FAST_FLAG_ROUTE_SHARD, FAST_PROTOCOL_VERSION,
12 FAST_REQUEST_MAGIC, FAST_RESPONSE_MAGIC, FastCodec, FastCommand, FastCommandKind, FastRequest,
13 FastRequestDecodeResult, FastResponse, FastResponseDecodeResult,
14};
15pub use resp::{
16 BorrowedCommandFrame, CommandFrame, CommandSpanFrame, Frame, RespCodec,
17 RespCommandDecodeResult, RespCommandSpanDecodeResult, RespDecodeResult,
18};