set_add
Add members to a Redis set using a specified key. Accepts single or multiple members for efficient data management within Redis MCP server.
Instructions
添加集合成员
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | 集合键名 | |
members | Yes | 要添加的成员或成员数组 |
Input Schema (JSON Schema)
{
"properties": {
"key": {
"description": "集合键名",
"type": "string"
},
"members": {
"description": "要添加的成员或成员数组",
"oneOf": [
{
"description": "成员",
"type": "string"
},
{
"description": "成员数组",
"items": {
"type": "string"
},
"type": "array"
}
]
}
},
"required": [
"key",
"members"
],
"type": "object"
}