const oldValue = await redis.getset("key", newValue);
Return the value of the specified key and replace it with a new value.
null
Was this page helpful?