Search…
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Overview
Redis
Vector
QStash
Workflow
Search
Box
Realtime
Developer API
Redis
SDKs
Python
Commands
Set
SCARD
Return how many members are in a set
1 min read
Copy as Markdown
Arguments
#
key
str
required
#
The key of the set.
Response
#
SADD
SDIFF
Example
redis.sadd(
"key"
,
"a"
,
"b"
,
"c"
);
assert
redis.scard(
"key"
)
==
3