Handling expiration after a TTL is quite trivial though if you need the single threaded coordination

Handling expiration after a TTL is quite trivial though if you need the single threaded coordination of DOs.
Attach a timestamp + a TTL on your values, and when reading them just check them against the current timestamp. If it's expired assume it didn't exist, and optionally delete it for cleanup. That's it.
Was this page helpful?