Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 1a7d0e5491
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.


@integer-reply, specifically:

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


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