@@ -467,19 +467,18 @@ For more information about the Python client library, see the [`influxdb3-python
467
467
You can use the `influxdb3` CLI to create a last value cache.
468
468
469
469
```
470
- Usage: $ influxdb3 create last-cache [OPTIONS] -d <DATABASE_NAME> -t <TABLE>
470
+ Usage: $ influxdb3 create last_cache [OPTIONS] -d <DATABASE_NAME> -t <TABLE> [CACHE_NAME]
471
471
472
472
Options:
473
- -h, --host <HOST_URL> URL of the running InfluxDB 3 server
474
- -d, --database <DATABASE_NAME> The database to run the query against
475
- --token <AUTH_TOKEN> The token for authentication
473
+ -h, --host <HOST_URL> URL of the running InfluxDB 3 Enterprise server [env: INFLUXDB3_HOST_URL=]
474
+ -d, --database <DATABASE_NAME> The database to run the query against [env: INFLUXDB3_DATABASE_NAME=]
475
+ --token <AUTH_TOKEN> The token for authentication [env: INFLUXDB3_AUTH_TOKEN=]
476
476
-t, --table <TABLE> The table for which the cache is created
477
- --cache-name <CACHE_NAME> Give a name for the cache
478
- --help Print help information
479
477
--key-columns <KEY_COLUMNS> Columns used as keys in the cache
480
478
--value-columns <VALUE_COLUMNS> Columns to store as values in the cache
481
479
--count <COUNT> Number of entries per unique key:column
482
480
--ttl <TTL> The time-to-live for entries (seconds)
481
+ --help Print help information
483
482
484
483
```
485
484
@@ -496,7 +495,7 @@ An example of creating this cache in use:
496
495
| Alpha | webserver | 2024-12-11T10:02:00 | 25.3 | Warn |
497
496
498
497
```bash
499
- influxdb3 create last-cache --database=servers --table=cpu --cache-name=cpuCache -- key-columns=host,application --value-columns=usage_percent,status --count=5
498
+ influxdb3 create last_cache --database=servers --table=cpu --key-columns=host,application --value-columns=usage_percent,status --count=5 cpuCache
500
499
```
501
500
502
501
#### Query a Last values cache
0 commit comments