X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ed9b544e10b84cd43348ddfab7068b610a5df1f7..40d224a9e3df29e27e967ec2f1b9b0ecf66df50f:/doc/ScardCommand.html diff --git a/doc/ScardCommand.html b/doc/ScardCommand.html index d85be9db..c6539745 100644 --- a/doc/ScardCommand.html +++ b/doc/ScardCommand.html @@ -27,10 +27,9 @@

SCARD _key_

-Time complexity O(1)
Return the set cardinality (number of elements). If the key does notexist 0 is returned, like for empty sets. If the key does not holda set value -1 is returned. Client libraries should raise an errorwhen -1 is returned instead to pass the value to the caller.
+Time complexity O(1)
Return the set cardinality (number of elements). If the key does notexist 0 is returned, like for empty sets.

Return value

Integer reply, specifically:

-the cardinality (number of elements) of the set as an integer `>=` 0 if the operation succeeded
--2 if the specified key does not hold a set value
+the cardinality (number of elements) of the set as an integer.
 

See also