cache_ttl
Inspect the remaining time-to-live (TTL) of a cache key in seconds. Returns -1 if key exists without expiry, -2 if key is missing.
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 |