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

26 lines
670 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>`_
**ExistsCommand: Contents**
  `EXISTS \_key\_ <#EXISTS%20_key_>`_
    `Return value <#Return%20value>`_
ExistsCommand
=============
#sidebar `GenericCommandsSidebar <GenericCommandsSidebar.html>`_
EXISTS \_key\_
==============
*Time complexity: O(1)*
Test if the specified key exists. The command returns"0" if the key
exists, otherwise "1" is returned.Note that even keys set with an
empty string as value willreturn "1".
Return value
------------
`Integer reply <ReplyTypes.html>`_, specifically:
::
1 if the key exists.
0 if the key does not exist.
.. |Redis Documentation| image:: redis.png