Skip to content
masterclass Buddy

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.

Subscribe
  • RENAMENX
  • RANDOMKEY
  • RESTORE

Source: RENAME - Upstash Documentation. Checked 2026-11-03.