3.2 KiB
3.2 KiB
The influxdb3 create last_cache
command creates a new last value cache.
Usage
influxdb3 create last_cache [OPTIONS] --database <DATABASE_NAME> --table <TABLE> [CACHE_NAME]
Arguments
- CACHE_NAME: (Optional) Name for the cache. If not provided, the command automatically generates a name.
Options
Option | Description | |
---|---|---|
-H |
--host |
Host URL of the running {{< product-name >}} server (default is http://127.0.0.1:8181 ) |
-d |
--database |
({{< req >}}) Name of the database to operate on |
--token |
({{< req >}}) Authentication token | |
-t |
--table |
({{< req >}}) Table to create the cache for |
--key-columns |
Comma-separated list of columns to use as keys in the cache--for example: foo,bar,baz |
|
--value-columns |
Comma-separated list of columns to store as values in the cache--for example: foo,bar,baz |
|
--count |
Number of entries per unique key column combination to store in the cache | |
--ttl |
Cache entries' time-to-live (TTL) in Humantime form--for example: 10s , 1min 30sec , 3 hours |
|
--tls-ca |
Path to a custom TLS certificate authority (for testing or self-signed certificates) | |
-h |
--help |
Print help information |
--help-all |
Print detailed help information |
Option environment variables
You can use the following environment variables to set command options:
Environment Variable | Option |
---|---|
INFLUXDB3_HOST_URL |
--host |
INFLUXDB3_DATABASE_NAME |
--database |
INFLUXDB3_AUTH_TOKEN |
--token |