08 — Expiry
A row ends when its state says so.
entity cart { key: CartId state: Cart command: Command expires: state.touched + 30d apply(state, command) { match state { None -> … // never written, or expired Some(cart) -> … } } }
- carts/c_81Ingrid
get → Found { state }10 days left - carts/c_82Lars
get → Found { state }19 days left - carts/c_83Kari
get → Found { state }24 days left - carts/c_84Sindre
get → Found { state }30 days left