> ## 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

## Helm Chartの設定値を表示する

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

これはHelm Chartの設定ファイルにおける外部Redis設定の一例です。

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

  sentinel:
    enabled: false
    nodes: ""          # カンマ区切りのRedis Sentinelノード一覧（host:port）
    serviceName: ""    # 監視対象のRedis Sentinelサービス名
    username: ""
    password: "#REPLACE_ME#"
    socketTimeout: 0.1 # Redis Sentinel接続のソケットタイムアウト（秒）

  cluster:
    enabled: false
    nodes: "#REPLACE_ME#"  # カンマ区切りのRedis Clusterノード一覧（host:port）
    password: "#REPLACE_ME#"
```

## RedisのSSL設定について

* SSL対応のRedisを利用するには、`useSSL` 項目を `true` に設定してください。
* `port` 項目については、SSL非対応時は `6379` を、SSL対応時は `6380` を指定します。

## 高可用性（HA）

* **Sentinel**：`sentinel.enabled` を `true` に設定し、`sentinel.nodes` と `sentinel.serviceName` を指定します。
* **Cluster**：`cluster.enabled` を `true` に設定し、`cluster.nodes` を指定します。
