cache_stream_set
Cache ordered string chunks from LLM token streams using Redis RPUSH, enabling later replay with cache_stream_get.
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 |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance | |
| key | Yes | Cache key | |
| chunks | Yes | Ordered list of string chunks | |
| ttl | No | TTL in seconds for the stored list (optional) |