TTL functions

ttlExpire

The ttlExpire function is used to set a Time-To-Live (TTL) on a key. Once the specified duration elapses, the key is automatically deleted from the database. This feature is helpful for scenarios involving temporary data, session expiration, or auto-cleanup mechanisms.

-> Read More


ttl

The ttl function checks the remaining time-to-live (in seconds) for a specific key in the database. It’s useful for understanding when a key is going to expire or confirming whether it has an expiration at all.

-> Read More