redis_mset
Set multiple Redis key-value pairs in one command to efficiently seed test data. Avoids overhead of individual set calls.
Instructions
Set multiple string keys to their values in a single command (e.g. for seeding test/sample data) — far more efficient than one redis_set call per key. Blocked when that connection's own readOnly mode is enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | JSON object of key/value pairs to set, e.g. '{"user:1:name":"Alice","user:2:name":"Bob"}' | |
| connectionId | No | Id of the redis connection to use, from databases.config.yml. Optional when only one redis connection is configured. |