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

redisSCard

Set cardinality


Description

Return the number of elements contained in the specified set.

Usage

redisSCard(set)

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

Examples

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

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