Expiring key-value state
Store session-scoped values under keys with explicit expiration.
When to consider it
- When temporary state must be shared across requests or application workers
Considerations
- Expiration does not replace authorization; choose key scope, eviction behavior, and persistence deliberately.
Connections
- In areaRetrieval, Memory & State
- Supports functionMaintain session state
- Used byValkey (self-hosted)
Sources
Last reviewed 2026-10-03