Upstash Documentation home page
Search or ask...
Console
Discord
Blog
X
Console
Search...
Navigation
Generic
RENAME
General
Redis
Kafka
Vector
QStash
SDKs
Developer API
Overall
Overview
SDKs
Typescript
@upstash/redis
Overview
Get Started
Commands
Overview
Auth
Bitmap
Generic
DEL
EXISTS
EXPIRE
EXPIREAT
KEYS
PERSIST
PEXPIRE
PEXPIREAT
PTTL
RANDOMKEY
RENAME
RENAMENX
SCAN
TOUCH
TTL
TYPE
UNLINK
Hash
Json
List
PubSub
Scripts
Server
Set
Sorted Set
Stream
String
Transactions
Deployment
Pipeline
Advanced
Retries
Troubleshooting
Developing or Testing
@upstash/query
@upstash/vector
@upstash/edge-flags
@upstash/ratelimit
@upstash/kafka
@upstash/qstash
Python
DevOps
Terraform
Pulumi
CLI
Generic
RENAME
Rename a key
Arguments
source
string
required
The original key.
destination
string
required
A new name for the key.
Response
OK
Was this page helpful?
Yes
No
RANDOMKEY
RENAMENX