The TTLs for public and private keys are separate, but for user to see public data both private and public items should be valid.
Questions
Maybe units in "expires_in" ? ("30 sec", "10 min")
Or maybe deadline-style api: "expires_at": "2017-09-05T18:00:00Z"
To be able to enumerate tasks when user went offline, we also need to keep private part of the lattice for as long as expiration time rather than session lifetime
Motivation
This is useful to keep notifications for short-living tasks, but not letting them introduce a memory leak if user sessions are long.
Implementation
The idea is to add
expires_in
key for lattice keys:The TTLs for public and private keys are separate, but for user to see public data both private and public items should be valid.
Questions
"expires_at": "2017-09-05T18:00:00Z"