cache_ttl
Check a cache key's remaining Time-to-Live in seconds. Identify if the key exists or has no expiration set.
Instructions
Get the remaining time-to-live (TTL) of a key in seconds. Returns -1 if the key exists but has no expiry, -2 if the key does not exist. Read-only — no side effects. Use cache_set with a ttl parameter to set or update the expiry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance (from list_instances) | |
| key | Yes | Cache key to inspect |