redis/ttl

Time To Live

Get expiration time

expiration
management

Command

TTL key

Explanation

Returns the remaining time to live of a key that has a timeout.

Examples

Check expiration time

TTL session:1234