const seconds = await redis.ttl(key);
Return the expiration in seconds of a key.
Was this page helpful?