Arguments
str
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.
Return the expiration in seconds of a key.
Related topics
TTLRedis® API Compatibility: supported commands, modules, and protocolsMemory, Chat History, RAG, Rate Limiting & Sandboxes for the Vercel Eve Agent FrameworkAgent Memory with Redis SearchVercel AI SDK Memory, RAG & Chat History with Redis