cache_ttl
Check the remaining time-to-live (TTL) of a cache key in seconds. Returns -1 for keys without expiry, -2 for missing keys.
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 |
|---|---|---|---|
| key | Yes | Cache key to inspect | |
| instance_id | Yes | UUID of the cache instance (from list_instances) |