Docs: improve Redis configuration doc for query caching (#46834)

* Docs: improve Redis configuration doc for query caching

* Apply suggestions from code review

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* fix small typo

* Update docs/sources/enterprise/enterprise-configuration.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
Agnès Toulet 2022-03-23 11:04:45 +01:00 committed by GitHub
parent c5b39dd3cd
commit c31428128a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,16 +439,19 @@ The default is `25`.
### url ### url
The full Redis URL of your Redis server. Example: `redis://localhost:6739/0`. The full Redis URL of your Redis server. For example: `redis://username:password@localhost:6739/0`. To enable TLS, use the `rediss` scheme.
The default is `"redis://localhost:6379"`. The default is `"redis://localhost:6379"`.
### cluster ### cluster
A comma-separated list of Redis cluster members in `host:port` format. For example, `localhost:7000, localhost: 7001, localhost:7002`. A comma-separated list of Redis cluster members, either in `host:port` format or using the full Redis URLs (`redis://username:password@localhost:6739`). For example, `localhost:7000, localhost: 7001, localhost:7002`.
If you use the full Redis URLs, then you can specify the scheme, username, and password only once. For example, `redis://username:password@localhost:0000,localhost:1111,localhost:2222`. You cannot specify a different username and password for each URL.
> **Note:** If you have specify `cluster`, the value for `url` is ignored. > **Note:** If you have specify `cluster`, the value for `url` is ignored.
> **Note:** You can enable TLS for cluster mode using the `rediss` scheme in Grafana Enterprise v8.5 and later versions.
### prefix ### prefix
A string that prefixes all Redis keys. This value must be set if using a shared database in Redis. If `prefix` is empty, then one will not be used. A string that prefixes all Redis keys. This value must be set if using a shared database in Redis. If `prefix` is empty, then one will not be used.