# RedisDB + Lettuce

Watch the following tutorial (only the Redis database creation part). After that, complete the Redis URI configuration in your config file.

{% embed url="<https://www.youtube.com/watch?t=4s&v=TYjgLgJMslc>" %}

\
**Step 1: Create a Redis Database on RedisLabs**

<figure><img src="/files/1I4rZxHoTfXp2tDkxbLK" alt=""><figcaption></figcaption></figure>

#### Step 2: Access Connection Details

<figure><img src="/files/H0XHQr8BlZigeFbCj8Ak" alt=""><figcaption></figcaption></figure>

**Step 3: Get Your Connection URI (after copying it, remove default and add /0 at the end, so the redis uri will be "redis\://password\@host:port/0")**

<figure><img src="/files/9fhnyNG7Byy3czerkQot" alt=""><figcaption></figcaption></figure>

After you've created a Redis database, complete the Redis URI in the proxy section of your main configuration file:

1. Ensure `storage` is set to either `"redis"` or `"lettuce"` (if "redis" doesn't work, try "lettuce" as it usually works reliably)
2. Set `redis -> uri:` to the URI you copied from RedisLabs
3. This configuration works with both BungeeCord and Velocity proxies


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spoof.dev/asteroid/setup/features/asteroid-proxy/redisdb-+-lettuce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
