AttentionThis page documents an earlier version. Go to the latest (v2.3) version.
This command finds the cardinality of the set that is associated with the given
key. Cardinality is the number of elements in a set.
Returns the cardinality of the set.
You can do this as shown below.
$ SADD yuga_world "America"
$ SADD yuga_world "Asia"
$ SCARD yuga_world