Add an element to a set.
Add the element to the specified set.
redisSAdd(set, element)
set |
The string set identifier. |
element |
The object to add to the set. |
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.
TRUE if the element was successfully added, FALSE otherwise (including cases in which the element already belonged to the set).
B. W. Lewis
http://redis.io/commands
## Not run: redisConnect() redisSAdd("set", 5) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.