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