Arguments
string
required
The original key.
string
required
A new name for the key.
Response
1 if key was renamed, 0 if key was not renamed.Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
const renamed = await redis.renamenx("old", "new");
Rename a key if it does not already exist.
1 if key was renamed, 0 if key was not renamed.const renamed = await redis.renamenx("old", "new");
Was this page helpful?