Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bbed758852
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.337 kb

Renames key to newkey if newkey does not yet exist. It returns an error under the same conditions as RENAME.

@return

@integer-reply, specifically:

  • 1 if key was renamed to newkey.
  • 0 if newkey already exists.

@examples

SET mykey "Hello"
SET myotherkey "World"
RENAMENX mykey myotherkey
GET myotherkey
Jump to Line
Something went wrong with that request. Please try again.