cache_stream_set
Cache ordered string chunks from a token stream using Redis RPUSH, enabling later replay of the sequence.
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) |