Upstash · Method
redis.rename
RENAME gives an existing Redis key a new name. It atomically moves the value and remaining expiration; an existing destination is overwritten.
Last updated
Syntax
RENAME <key> <newkey>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
RENAMENXRANDOMKEYRESTORE