It may sound a bit silly but as I'm trying to write fully typed code I found out that managing TTLs values in an enum makes things more intuitive and organized. Here's an example from my app
Back
•
In response to @danielpetrica
When encountering it in the code we can easily read tenMinutes or oneDay to undersrand how long this TTL is.