TTL of a key redis

Remaining TTL in seconds; -1 = no expiry, -2 = not found

redis-cli -h redis TTL <key>
more redis all 32 commands →