RENAMENX
Syntax
RENAMENX key newkey
Description
Renames collection key to newkey, if it does not exist yet. If
newkey already exists, this command does nothing.
Returns 1 if key was renamed to newkey, 0 if newkey already existed, or
"ERR" when key or newkey are actively being used by a geofence or webhook.
Examples
RENAMENX fleet fleet2
Related Commands
BOUNDS
DEL
DROP
EXPIRE
FSET
GET
JDEL
JGET
JSET
KEYS
PDEL
PERSIST
RENAME
RENAMENX
SET
STATS
TTL