redis_expire
Set an expiration time in seconds on a Redis key. Manage key lifecycle to automatically remove stale data.
Instructions
Set expiration time on a key.
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 | The key to expire. | |
| seconds | Yes | Expiration time in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |