-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs to redis connection (#36581)
* Add docs for redis connection and add user-friendly connection form * Add username for redis connection and docs
- Loading branch information
Showing
3 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.. Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
.. http://www.apache.org/licenses/LICENSE-2.0 | ||
.. Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
Redis Connection | ||
================ | ||
|
||
The Redis connection type enables connection to Redis cluster. | ||
|
||
Default Connection IDs | ||
---------------------- | ||
|
||
Redis Hook uses parameter ``redis_conn_id`` for Connection IDs and the value of the | ||
parameter as ``redis_default`` by default. | ||
|
||
Configuring the Connection | ||
-------------------------- | ||
Host | ||
The host of the Redis cluster. | ||
|
||
Port | ||
Specify the port to use for connecting the Redis cluster (Default is ``6379``). | ||
|
||
Login | ||
The user that will be used for authentication against the Redis cluster (only applicable in Redis 6.0 and above). | ||
|
||
Password | ||
The password of the user that will be used for authentication against the Redis cluster. | ||
|
||
DB | ||
The DB number to use in the Redis cluster (Default is ``0``). | ||
|
||
Enable SSL | ||
Whether to enable SSL connection to the Redis cluster (Default is ``False``). | ||
|
||
SSL verify mode | ||
Whether to try to verify other peers' certificates and how to behave if verification fails. | ||
For more information, see: `Python SSL docs <https://docs.python.org/3/library/ssl.html#ssl.SSLContext.verify_mode>`_. | ||
Allowed values are: ``required``, ``optional``, ``none``. | ||
|
||
CA certificate path | ||
The path to a file of concatenated CA certificates in PEM format (Default is ``None``). | ||
|
||
Private key path | ||
Path to an ssl private key (Default is ``None``). | ||
|
||
Certificate path | ||
Path to an ssl certificate (Default is ``None``). | ||
|
||
Enable hostname check | ||
If set, match the hostname during the SSL handshake (Default is ``False``). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
:maxdepth: 1 | ||
:caption: Guides | ||
|
||
Connection types <connections> | ||
Logging <logging/index> | ||
|
||
.. toctree:: | ||
|