Arguments
string
required
The key
Response
The number of milliseconds until this expires, negative if the key does not exist or does not have an expiration set.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const millis = await redis.pttl(key);
Return the expiration in milliseconds of a key.
const millis = await redis.pttl(key);
Was this page helpful?