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

# write_through_distributed_cache_* 会话设置

> ClickHouse 在 write_through_distributed_cache_* 生成组中的会话设置。

这些设置可在 [system.settings](https://clickhouse.com/docs/zh/reference/system-tables/settings.md) 中查看，并由 [源代码](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) 自动生成。

## write\_through\_distributed\_cache\_buffer\_size

类型

UInt64

默认值

0

仅在 ClickHouse Cloud 中生效。每个 write buffer 写入分布式缓存服务器时所用缓冲区的最大大小。它与写入 object storage 的缓冲区相互独立：后者会持续增长，直至达到 upload part 大小。如果为 0，则使用 `DBMS_DEFAULT_BUFFER_SIZE` (1 MiB) 。该缓冲区从 `adaptive_write_buffer_initial_size` 开始，只在 stream 写入过程中逐步增长到此大小，从而避免一个 part 为其写入的每个 stream 都按该大小分配缓冲区。
