sadd
Add a value to a Redis set with an optional expiration time. Specify the set key, value, and duration in seconds for automatic expiration.
Instructions
Add a value to a Redis set with an optional expiration time.
Args: name: The Redis set key. value: The value to add to the set. expire_seconds: Optional; time in seconds after which the set should expire.
Returns: A success message or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expire_seconds | No | ||
| name | Yes | ||
| value | Yes |
Input Schema (JSON Schema)
{ "properties": { "expire_seconds": { "default": null, "title": "Expire Seconds", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "name", "value" ], "title": "saddArguments", "type": "object" }