RENAME
Since 1.1.0Keys
Syntax
RENAME source destinationRenames source to destination, with its expiry. If destination exists, it is replaced.
Reply
OK.ERR no such keyifsourcedoes not exist.
Examples
> SET r v EX 100
OK
> RENAME r r2
OK
> TTL r2
(integer) 100
> RENAME nope x
(error) ERR no such key