waymaker-client/rust/src/cache/mod.rs

22 lines
756 B
Rust

//! Redis-shape typed structures backed by waymaker server RPCs.
//!
//! Every operation is a single typed RPC: no client-side knowledge
//! of subject patterns, header names, or marker bytes is needed.
//! The conventions live server-side in
//! `waymaker_streams::wire_conventions` — every language client
//! stays in sync because there's only one place where the wire
//! contract lives.
//!
//! Three Redis-flavored types:
//! - [`Hash`] — HSET/HGET/HDEL/HGETALL.
//! - [`Set`] — SADD/SREM/SMEMBERS/SISMEMBER.
//! - [`Queue`] — RPUSH/LPOP/LRANGE/LLEN (queue-style).
pub mod hash;
pub mod queue;
pub mod set;
pub use hash::{Hash, HashStore, HashStoreConfig};
pub use queue::{Queue, QueueConfig};
pub use set::{Set, SetStore, SetStoreConfig};