--- title: Create a Distinct Value Cache description: | Use the [`influxdb3 create distinct_cache` command](/influxdb3/core/reference/cli/influxdb3/create/distinct_cache/) to create a Distinct Value Cache. menu: influxdb3_core: parent: Manage the Distinct Value Cache weight: 201 influxdb3/core/tags: [cache] related: - /influxdb3/core/reference/cli/influxdb3/create/distinct_cache/ list_code_example: | {{% show-in "core" %}} ```bash influxdb3 create distinct_cache \ --database example-db \ --token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \ --table wind_data \ --columns country,county,city \ --max-cardinality 10000 \ --max-age 24h \ windDistinctCache ``` {{% /show-in %}} {{% show-in "enterprise" %}} ```bash influxdb3 create distinct_cache \ --database example-db \ --token 00xoXX0xXXx0000XxxxXx0Xx0xx0 \ --table home \ --node-spec "nodes:node-01,node-02" \ --columns country,county,city \ --max-cardinality 10000 \ --max-age 24h \ windDistinctCache ``` {{% /show-in %}} source: /shared/influxdb3-admin/distinct-value-cache/create.md ---