Renames key to newkey. It returns an error when the source and destination
names are the same, or when key does not exist. If newkey already exists it
is overwritten.
Return value
Examples
redis>
SET mykey "Hello"
OKredis> RENAME mykey myotherkey
OKredis> GET myotherkey
"Hello"