Skip to content

SADD

Redis Sadd 命令向集合中添加一个或多个成员元素,集合中已存在的成员元素将被忽略。

语法

SADD key member [member ...]

返回值

添加到集合中的新成员数量。

Released under the GPL-3.0 License.