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

No arguments

Response

A random key from database, or None when database is empty.
assert redis.randomkey() is None

redis.set("key1", "Hello")
redis.set("key2", "World")

assert redis.randomkey() is not None