> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Search it with GET https://upstash.com/docs/search?q=<query>.
> Use these to discover all available pages before exploring further.

# RANDOMKEY

> Returns a random key from database

## Arguments

No arguments

## Response

<ResponseField type="string" required>
A random key from database, or `null` when database is empty.
</ResponseField>

<RequestExample>
```ts Example
const key = await redis.randomkey();
```
</RequestExample>
