--- title: "查询缓存条目数量配置" date: 2026-03-19 lastmod: 2026-03-19 description: "控制查询缓存的最大条目数量" tags: ["缓存", "查询性能", "内存管理"] summary: "配置项作用 # indices.queries.cache.count 配置项控制查询缓存中可存储的最大条目数量。 默认值 # 10000 配置类型 # 动态配置 配置格式 # # 默认配置 indices.queries.cache.count: 10000 # 增加缓存条目数 indices.queries.cache.count: 20000 " --- ## 配置项作用 `indices.queries.cache.count` 配置项控制查询缓存中可存储的最大条目数量。 ## 默认值 ``` 10000 ``` ## 配置类型 **动态配置** ## 配置格式 ```yaml # 默认配置 indices.queries.cache.count: 10000 # 增加缓存条目数 indices.queries.cache.count: 20000 ```