Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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.

@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.