DRAFTThis page is not published. Only visible in development mode.

TTL & Row Settings

Rows can expire. Views and tables accept row settings that tell the engine when and how to drop stale data.

Declaring a TTL

Row lifetime is declared with the with block, for example with { row: { ttl: { duration: '1h', mode: drop } } }. This section will cover the syntax and the available modes.

What expiry means for views

Expired rows flow through incremental maintenance like any other delete. This section will explain how TTL interacts with derived state.

Use cases

Session state, rate-limit windows, caches with a real eviction contract. This section will show canonical patterns.