set_data
Set or insert data into Redis for a specific key, with optional TTL and type controls.
Instructions
Set/insert data for a key in Redis
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": {
"key": "<key>",
"value": "<value>"
},
"name": "set_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Redis key to set data for | |
| ttl | No | Time to live in seconds (optional) | |
| type | No | Data type: string, list, set, hash (default: string) | |
| value | Yes | Value to set for the key |