Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash-fix-issues-on-docs.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

source
string
required
The original key.
destination
string
required
A new name for the key.

Response

1 if key was renamed, 0 if key was not renamed.
const renamed = await redis.rename("old", "new");