Expand description
Submit options for caller-controlled storage routing.
sync-engine is a dumb storage layer - it stores bytes and routes them to L1/L2/L3 based on caller-provided options. The caller decides where data goes. Compression is the caller’s responsibility.
§Example
ⓘ
use sync_engine::{SubmitOptions, CacheTtl};
// Default: store in both Redis and SQL
let default_opts = SubmitOptions::default();
// Durable storage (SQL only, skip Redis cache)
let durable_opts = SubmitOptions::durable();
// Ephemeral cache (Redis only with TTL)
let cache_opts = SubmitOptions::cache(CacheTtl::Hour);Structs§
- Options
Key - Key for grouping items with compatible options in batches.
- Submit
Options - Options for controlling where data is stored.
Enums§
- Cache
Ttl - Standard cache TTL values that encourage batch grouping.