X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ed9b544e10b84cd43348ddfab7068b610a5df1f7..33c1269efc86a603c54c1045edc9402488a7224f:/doc/ScardCommand.html diff --git a/doc/ScardCommand.html b/doc/ScardCommand.html index d85be9db..da7b3cbd 100644 --- a/doc/ScardCommand.html +++ b/doc/ScardCommand.html @@ -16,7 +16,7 @@
-ScardCommand: Contents
  SCARD _key_
    Return value
    See also +ScardCommand: Contents
  SCARD _key_
    Return value

ScardCommand

@@ -26,13 +26,12 @@
-

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.
+ #sidebar SetCommandsSidebar

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.

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
-

See also

- +the cardinality (number of elements) of the set as an integer. + +