Back

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
image

1

111

0 / 1000

When encountering it in the code we can easily read tenMinutes or oneDay to undersrand how long this TTL is.

105