expire
Set an expiration time in seconds for a Redis key to automatically remove it after the specified duration.
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 |
|---|---|---|---|
| name | Yes | ||
| expire_seconds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |