Arguments
string
required
The key
Response
The number of seconds 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: /docs/llms.txt
Use this file to discover all available pages before exploring further.
const seconds = await redis.ttl(key);
Return the expiration in seconds of a key.
const seconds = await redis.ttl(key);
Was this page helpful?