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
str
required
The key to get.
value
Any
required
The new value to store.

Response

The response is the value stored at the key or None if the key doesn’t exist.
redis.set("key", "old-value")

assert redis.getset("key", "newvalue") == "old-value"