ScardCommand: Contents
  SCARD _key_
    Return value

ScardCommand

#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.