Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

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

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"});