redis_key_info
Inspect a Redis key's type, TTL, encoding, memory usage, and idle time without reading its value. Avoid pulling large values and identify missing TTLs or big keys.
Instructions
Inspect a single key without reading its (possibly huge) value: type, TTL (seconds and ms, -1 = no expiry, -2 = key missing), internal encoding (listpack, hashtable, intset, ...), serialized memory footprint in bytes (MEMORY USAGE), and idle time. Use this before redis_get on an unfamiliar key to avoid pulling a multi-megabyte value into context, and to spot big keys / missing TTLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to inspect. |