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

> 쿼리 캐시의 내용을 보여주는 시스템 테이블입니다.

# system.query_cache

<Info>
  **ClickHouse Cloud에서 쿼리하기**

  이 시스템 테이블의 데이터는 ClickHouse Cloud의 각 노드에 로컬로 저장됩니다. 따라서 전체 데이터를 모두 확인하려면 `clusterAllReplicas` 함수를 사용해야 합니다. 자세한 내용은 [여기](/ko/reference/system-tables/overview#system-tables-in-clickhouse-cloud)를 참조하십시오.
</Info>

<div id="description">
  ## 설명
</div>

[쿼리 캐시](/ko/concepts/features/performance/caches/query-cache)의 내용을 보여줍니다.

<div id="columns">
  ## 컬럼
</div>

* `query` ([String](/ko/reference/data-types)) — 쿼리 문자열입니다.
* `query_id` ([String](/ko/reference/data-types)) — 쿼리 ID입니다.
* `result_size` ([UInt64](/ko/reference/data-types)) — 쿼리 캐시 엔트리의 크기입니다.
* `tag` ([LowCardinality(String)](/ko/reference/data-types)) — 쿼리 캐시 엔트리의 태그입니다.
* `stale` ([UInt8](/ko/reference/data-types)) — 쿼리 캐시 엔트리가 오래되었는지 여부입니다.
* `shared` ([UInt8](/ko/reference/data-types)) — 쿼리 캐시 엔트리가 여러 사용자 간에 공유되는지 여부입니다.
* `compressed` ([UInt8](/ko/reference/data-types)) — 쿼리 캐시 엔트리가 압축되었는지 여부입니다.
* `expires_at` ([DateTime](/ko/reference/data-types)) — 쿼리 캐시 엔트리가 오래된 상태가 되는 시점입니다.
* `key_hash` ([UInt64](/ko/reference/data-types)) — 쿼리 문자열의 해시로, 쿼리 캐시 엔트리를 찾는 키로 사용됩니다.

<div id="example">
  ## 예시
</div>

```sql theme={null}
SELECT * FROM system.query_cache FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
query:       SELECT 1 SETTINGS use_query_cache = 1
query_id:    7c28bbbb-753b-4eba-98b1-efcbe2b9bdf6
result_size: 128
tag:
stale:       0
shared:      0
compressed:  1
expires_at:  2023-10-13 13:35:45
key_hash:    12188185624808016954

1 row in set. Elapsed: 0.004 sec.
```
