> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis 딕셔너리 소스

> ClickHouse에서 Redis를 딕셔너리 소스로 구성합니다.

설정 예시:

<Tabs>
  <Tab title="DDL">
    ```sql theme={null}
    SOURCE(REDIS(
        host 'localhost'
        port 6379
        storage_type 'simple'
        db_index 0
    ))
    ```
  </Tab>

  <Tab title="설정 파일">
    ```xml theme={null}
    <source>
        <redis>
            <host>localhost</host>
            <port>6379</port>
            <storage_type>simple</storage_type>
            <db_index>0</db_index>
        </redis>
    </source>
    ```
  </Tab>
</Tabs>

<br />

설정 필드:

| 설정             | 설명                                                                                                                                                                             |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `host`         | Redis 호스트입니다.                                                                                                                                                                  |
| `port`         | Redis 서버의 포트입니다.                                                                                                                                                               |
| `storage_type` | 키 처리에 사용되는 Redis 내부 저장소의 구조입니다. `simple`은 단순 소스 및 해시된 단일 키 소스에 사용되고, `hash_map`은 2개의 키를 사용하는 해시된 소스에 사용됩니다. 범위 소스와 복합 키를 사용하는 cache 소스는 지원되지 않습니다. 기본값은 `simple`입니다. 선택 사항입니다. |
| `db_index`     | Redis 논리 DB의 숫자 인덱스입니다. 기본값은 `0`입니다. 선택 사항입니다.                                                                                                                                 |
