redis_expire
Set a Redis key's time to live in seconds to automatically expire it after a specified duration.
Instructions
Set a key's time to live in seconds. Blocked when that connection's own readOnly mode is enabled.
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>",
"seconds": "<seconds>"
},
"name": "redis_expire"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| seconds | Yes | Time to live in seconds | |
| connectionId | No | Id of the redis connection to use, from databases.config.yml. Optional when only one redis connection is configured. |