docs(storage): Add documentation for storage.caching

This commit is contained in:
TwiN 2022-08-18 19:18:16 -04:00
parent 9de6334f21
commit a044f1d274

View File

@ -247,11 +247,12 @@ Here are some examples of conditions you can use:
### Storage ### Storage
| Parameter | Description | Default | | Parameter | Description | Default |
|:---------------|:-------------------------------------------------------------------------------|:-----------| |:------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------|:-----------|
| `storage` | Storage configuration | `{}` | | `storage` | Storage configuration | `{}` |
| `storage.path` | Path to persist the data in. Only supported for types `sqlite` and `postgres`. | `""` | | `storage.path` | Path to persist the data in. Only supported for types `sqlite` and `postgres`. | `""` |
| `storage.type` | Type of storage. Valid types: `memory`, `sqlite`, `postgres`. | `"memory"` | | `storage.type` | Type of storage. Valid types: `memory`, `sqlite`, `postgres`. | `"memory"` |
| `storage.caching` | Whether to use write-through caching. Improves loading time for large dashboards. <br />Only supported if `storage.type` is `sqlite` or `postgres` | `false` |
- If `storage.type` is `memory` (default): - If `storage.type` is `memory` (default):
```yaml ```yaml