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 to expire.
milliseconds
integer
The number of milliseconds until the key expires.

Response

1 if the timeout was applied, 0 if key does not exist.
 await redis.pexpire(key, 60_000); // 1 minute