From db3e8a7f5ad625828ff3e46e8978bf0c0ddebbc9 Mon Sep 17 00:00:00 2001 From: Alex Zhang Date: Thu, 27 Jul 2023 22:02:05 +0800 Subject: [PATCH] docs: describe the missing db parameter in redis provider --- docs/content/providers/redis.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/content/providers/redis.md b/docs/content/providers/redis.md index 505e612b6..bd61e103c 100644 --- a/docs/content/providers/redis.md +++ b/docs/content/providers/redis.md @@ -105,6 +105,28 @@ providers: --providers.redis.password=foo ``` +### `db` + +_Optional, Default=0_ + +Defines the database to be selected after connecting to the Redis. + +```yaml tab="File (YAML)" +providers: + redis: + # ... + db: 0 +``` + +```toml tab="File (TOML)" +[providers.redis] + db = 0 +``` + +```bash tab="CLI" +--providers.redis.db=0 +``` + ### `tls` _Optional_