cache_stream_set
Store ordered string chunks, such as LLM token streams, into a Redis-backed cache for later retrieval and replay via a matching get tool.
Instructions
Cache a list of string chunks (e.g. LLM token stream) via Redis RPUSH. Each chunk is stored as a separate list element under cachly:stream:{key}. Replay with cache_stream_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Cache key | |
| ttl | No | TTL in seconds for the stored list (optional) | |
| chunks | Yes | Ordered list of string chunks | |
| instance_id | Yes | UUID of the cache instance |