RENAME
Syntax
RENAME key newkey
Description
Renames collection key
to newkey
. If newkey
already exists, it
will be deleted prior to renaming.
Returns "OK" for success or "ERR" when key
or newkey
are actively being
used by a geofence or webhook.
Examples
RENAME fleet fleet2
Related Commands
BOUNDS
DEL
DROP
EXPIRE
FSET
GET
JDEL
JGET
JSET
KEYS
PDEL
PERSIST
RENAME
RENAMENX
SET
STATS
TTL