Home
Installing Upstash.js
Initializing Upstash.js
If you have the environment variables UPSTASH_URL
and UPSTASH_TOKEN
, you can initialize this library like so:
Otherwise, you can set these manually
General Usage
The return type for all methods on the Upstash objects is a tuple, where one of the two values is always undefined. If there was some sort of error, the return type is [undefined, string]
, where the string is the description of the error. Otherwise, the return type if [result, undefined
. You can destructure the return value like so:
Last updated