Files
redis-docs/docs/ZcardCommand.rst
Kenneth Reitz 525e9fd3d3 all into sphinx
2011-04-06 13:27:48 -04:00

25 lines
674 B
ReStructuredText
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
`|Redis Documentation| <index.html>`_
**ZcardCommand: Contents**
  `ZCARD \_key\_ (Redis > <#ZCARD%20_key_%20(Redis%20%3E>`_
    `Return value <#Return%20value>`_
ZcardCommand
============
#sidebar
`SortedSetCommandsSidebar <SortedSetCommandsSidebar.html>`_
ZCARD \_key\_ (Redis >
======================
1.1) = *Time complexity O(1)*
Return the sorted set cardinality (number of elements). If the
*key* does notexist 0 is returned, like for empty sorted sets.
Return value
------------
`Integer reply <ReplyTypes.html>`_, specifically:
::
the cardinality (number of elements) of the set as an integer.
.. |Redis Documentation| image:: redis.png