redisSCard: Set cardinality

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/setVal.R

Description

Return the number of elements contained in the specified set.

Usage

1

Arguments

set

A string set identifier.

Value

The function returns an integer corresponding to the number of elements in the set. Zero is returned if the set is empty or if the set does not exist.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

redisSAdd

Examples

1
2
3
4
5
6
## Not run: 
redisConnect()
redisSAdd("set",5)
redisSCard("set")

## End(Not run)

rredis documentation built on May 2, 2019, 2:02 p.m.