X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0bd06e524ae437c6fd1286f5508e2c5521afe0ac..7f4e28e75046104599a5d83c493fdfd78f93ab49:/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