expire
Configure automatic Redis key expiration by specifying a key name and a time duration in seconds. Ensures efficient data management by removing stale entries.
Instructions
Set an expiration time for a Redis key.
Args: name: The Redis key. expire_seconds: Time in seconds after which the key should expire.
Returns: A success message or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expire_seconds | Yes | ||
name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"expire_seconds": {
"title": "Expire Seconds",
"type": "integer"
},
"name": {
"title": "Name",
"type": "string"
}
},
"required": [
"name",
"expire_seconds"
],
"title": "expireArguments",
"type": "object"
}