added
New TTL support for storage.set requests
April 8th, 2025
We added a new ttl
parameter for storage.set requests, allowing you to specify a time-to-live (in seconds) for particular stored values. After the TTL expires, the value will be deleted and can't be retrieved.
const { version, success, error } = await storage.set(key, value, { previousVersion, shared, ttl, version });