# Redis

## Prerequisite

1. Spin up a [Redis-Stack Server](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/) using Docker

```bash
docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest
```

## Setup

1. Add a new **Redis** node on canvas.
2. Create new Redis credential.

<figure><img src="/files/EbHctm4oqo3T4pJUhBdW" alt="" width="257"><figcaption></figcaption></figure>

3. Select type of Redis Credential. Choose Redis API if you have username and password, otherwise Redis URL:

<figure><img src="/files/p554dGNzUkWjZiia2n7G" alt="" width="563"><figcaption></figcaption></figure>

4. Fill in the url:

<figure><img src="/files/ILwBHascYfi6MwKc6Mlo" alt="" width="542"><figcaption></figcaption></figure>

5. Now you can start upserting data with Redis:

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

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

6. Navigate to Redis Insight portal, and to your database, you will be able to see all the data that has been upserted:

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


---

# 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.flowiseai.com/integrations/langchain/vector-stores/redis.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.
