cache_set
Store key-value pairs in a cache instance with optional expiration time. Supports strings and JSON objects for persistent AI memory across development sessions.
Instructions
Set a key-value pair in a running cache instance. Value can be a string or a JSON-serialized object. Optionally set a TTL in seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | ||
| key | Yes | Cache key | |
| value | Yes | Value to store (string or JSON) | |
| ttl | No | Time-to-live in seconds (optional, omit for no expiry) |