await redis.set("my-key", {my: "value"});

Arguments

key
string
required
The key
value
TValue
required
The value, if this is not a string, we will use JSON.stringify to convert it to a string.
opts
object
You can pass a few options to the command.

Response

"OK"
await redis.set("my-key", {my: "value"});