Caching Values in Storage for Up to 30 Days

We’re excited to share that a new ttl parameter is now available for storage.set requests. This lets you specify a time-to-live (in seconds) for individual stored values. Once the TTL expires, the value will be automatically deleted and will no longer be retrievable.

To learn more about the feature and how to use it, check out our documentation.
We’d love to hear your feedback! Feel free to leave a comment here or open a feature request.

5 Likes

Hey Maor.

Question-
What happens to our current code where ttl is not passed? Does it continue to be treated as perpetual storage?

@kranthi_thoughtflow let’s hope so!

Hey @kranthi_thoughtflow,
The answer is yes.
The current functionality does not change. only if you pass a valid TTL value, it will be treated as temporary.

1 Like

Great. Thank you.