Arguments
string
required
The key to get.
required
The new value to store.
Response
The response is the value stored at the key or
null if the key doesn’t exist.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const oldValue = await redis.getset("key", newValue);
Return the value of the specified key and replace it with a new value.
null if the key doesn’t exist.
const oldValue = await redis.getset("key", newValue);
Was this page helpful?