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