Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redisSAdd

Add an element to a set.


Description

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

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).

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()
redisSAdd("set", 5)

## End(Not run)

rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.