Arguments
str
required
The key of the set.
Response
How many members are in the set.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.sadd("key", "a", "b", "c");
assert redis.scard("key") == 3
Return how many members are in a set
redis.sadd("key", "a", "b", "c");
assert redis.scard("key") == 3
Was this page helpful?