> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis

## Display Helm Chart Values

```bash theme={null}
helm show values dify/dify
```

Example of the external Redis configuration in the Helm chart values:

```yaml theme={null}
externalRedis:
  enabled: true
  useSSL: false
  host: "redis.example"
  port: 6379
  username: ""
  password: "#REPLACE_ME#"
  db: 0

  sentinel:
    enabled: false
    nodes: ""          # Comma-separated list of Redis Sentinel nodes (host:port)
    serviceName: ""    # Name of the Redis Sentinel service to monitor
    username: ""
    password: "#REPLACE_ME#"
    socketTimeout: 0.1 # Socket timeout in seconds for Redis Sentinel connections

  cluster:
    enabled: false
    nodes: "#REPLACE_ME#"  # Comma-separated list of Redis Cluster nodes (host:port)
    password: "#REPLACE_ME#"
```

## Redis SSL Configuration

* To enable Redis with SSL, set the `useSSL` field to `true`.
* The `port` field should be set to `6379` for non-SSL connections and `6380` for SSL connections.

## High Availability

* **Sentinel**: set `sentinel.enabled` to `true`, then provide `sentinel.nodes` and `sentinel.serviceName`.
* **Cluster**: set `cluster.enabled` to `true`, then provide `cluster.nodes`.
