> ## Documentation Index
> Fetch the complete documentation index at: https://inframan.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis

> Run Redis in your infrastructure and connect services to it.

The Redis add-on runs a Redis instance inside your infrastructure, for caching, queues and session storage.

## Install

In the **App Store**, choose **Redis** and fill in the **Infrastructure**, an **Instance name** such as `cache` (it can't be changed later), and its **Memory**. Choose whether to turn on **persistence**, which keeps the data on a volume across restarts.

On Google Cloud, the first install asks you to run a short script that creates Redis's identity. Until you run it and click **Verify**, nothing is created.

## Connect a service

```yaml inframan.yaml theme={null}
services:
  api:
    port: 8080
    connections:
      REDIS_URL: redis/cache
```

`REDIS_URL` receives a URL of the form:

```text theme={null}
redis://:<password>@<host>.svc.cluster.local:<port>
```

Redis is reachable only from inside the cluster, and requires its password.

## Monitoring

The instance's **Monitoring** tab charts memory, throughput, connections and persistence. The **Overview** tab runs health checks for:

* The instance being down.
* Memory use above 80%.
* A replication link that's down.
* Clients above 90% of the limit.

A connected AI assistant can read 22 Redis metrics by name, including `ops_per_second`, `cache_hit_rate`, `memory_used_percent`, `evicted_keys` and `connected_clients`.

## Limits

* One tier, **Basic**: a single Redis instance.
* Redis has no backups. Use persistence for data that should survive a restart, and keep anything you can't lose in [PostgreSQL](https://inframan.mintlify.site/provision/add-ons/postgresql.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.