Set

SCARD

Return how many members are in a set

Arguments

keybodystrrequired

The key of the set.

Response

intrequired

How many members are in the set.

Example
redis.sadd("key", "a", "b", "c"); assert redis.scard("key") == 3
Loading search…