cache_mset
Store multiple key-value pairs in cache with per-key TTLs using a single pipeline round-trip, overwriting any existing values. Returns a summary of successfully set keys and any errors.
Instructions
Set multiple key-value pairs in a single pipeline round-trip. Supports per-key TTL – unlike native MSET. Uses one TCP round-trip for N keys via Redis pipeline. Each item overwrites any existing value for that key. On partial failure the successfully pipelined keys are committed; a per-key error list is returned for any that failed. Returns a summary: { set: N, errors: [...] }. Use cache_set for a single key; use cache_stream_set for large streaming payloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Key-value pairs to set | |
| instance_id | Yes | UUID of the cache instance |