Add the element to the specified set.
将元素添加到指定的集合。
用法----------Usage----------
redisSAdd(set, element)
参数----------Arguments----------
参数:set
The string set identifier.
的字符串集标识符。
参数:element
The object to add to the set.
要添加的对象的集合。
Details
详细信息----------Details----------
If member is already a member of the set no operation is performed. If key does not exist a new set with the specified member as sole member is created. If the key exists but does not hold a set value an error is returned.
如果会员已经是会员的设置,没有进行任何操作。如果键不存在,创建了一套新的指定成员的唯一成员。如果该键存在,但不会保持一个设定值,则返回一个错误。
值----------Value----------
TRUE if the element was successfully added, FALSE otherwise (including cases in which the element already belonged to the set).
TRUE,如果该元素已成功添加,否则返回FALSE(包括在其中的元素已经属于该组的情况下)。
(作者)----------Author(s)----------
B. W. Lewis
参考文献----------References----------
参见----------See Also----------
redisSRem
redisSRem
实例----------Examples----------
## Not run: [#不运行:]
redisConnect()
redisSAdd("set", 5)