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

25 lines
661 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>`_
**RenamenxCommand: Contents**
  `RENAMENX \_oldkey\_ \_newkey\_ <#RENAMENX%20_oldkey_%20_newkey_>`_
    `Return value <#Return%20value>`_
RenamenxCommand
===============
#sidebar `GenericCommandsSidebar <GenericCommandsSidebar.html>`_
RENAMENX \_oldkey\_ \_newkey\_
==============================
*Time complexity: O(1)*
Rename *oldkey* into *newkey* but fails if the destination key
*newkey* already exists.
Return value
------------
`Integer reply <ReplyTypes.html>`_, specifically:
::
1 if the key was renamed
0 if the target key already exist
.. |Redis Documentation| image:: redis.png