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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"key": "<key>",
"chunks": "<chunks>"
},
"name": "cache_stream_set"
}
}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 |