You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/03/03 04:23:59 UTC
(opendal) branch main updated: chore(services/redis): Fix docs & comments typos (#4306)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 6925aef90e chore(services/redis): Fix docs & comments typos (#4306)
6925aef90e is described below
commit 6925aef90edc9bbfced2ed7a286888a29f74d255
Author: Alex Overchenko <al...@gmail.com>
AuthorDate: Sun Mar 3 07:23:54 2024 +0300
chore(services/redis): Fix docs & comments typos (#4306)
---
core/src/services/redis/backend.rs | 4 +++-
core/src/services/redis/docs.md | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/core/src/services/redis/backend.rs b/core/src/services/redis/backend.rs
index 77ca74b64c..14d647f9ca 100644
--- a/core/src/services/redis/backend.rs
+++ b/core/src/services/redis/backend.rs
@@ -121,6 +121,7 @@ impl RedisBuilder {
/// currently supported schemes:
/// - no scheme: will be seen as "tcp"
/// - "tcp" or "redis": unsecured redis connections
+ /// - "rediss": secured redis connections
/// - "unix" or "redis+unix": unix socket connection
pub fn endpoint(&mut self, endpoint: &str) -> &mut Self {
if !endpoint.is_empty() {
@@ -130,11 +131,12 @@ impl RedisBuilder {
}
/// set the network address of redis cluster service.
- /// This parameter is mutually exclusive with the endponit parameter.
+ /// This parameter is mutually exclusive with the endpoint parameter.
///
/// currently supported schemes:
/// - no scheme: will be seen as "tcp"
/// - "tcp" or "redis": unsecured redis connections
+ /// - "rediss": secured redis connections
/// - "unix" or "redis+unix": unix socket connection
pub fn cluster_endpoints(&mut self, cluster_endpoints: &str) -> &mut Self {
if !cluster_endpoints.is_empty() {
diff --git a/core/src/services/redis/docs.md b/core/src/services/redis/docs.md
index 59f25158de..631538f7e1 100644
--- a/core/src/services/redis/docs.md
+++ b/core/src/services/redis/docs.md
@@ -18,7 +18,7 @@ This service can be used to:
- `root`: Set the working directory of `OpenDAL`
- `endpoint`: Set the network address of redis server
-- `cluster_endpoints`: Set the network address of redis cluster server. This parameter is mutually exclusive with the `endponit` parameter.
+- `cluster_endpoints`: Set the network address of redis cluster server. This parameter is mutually exclusive with the `endpoint` parameter.
- `username`: Set the username of Redis
- `password`: Set the password for authentication
- `db`: Set the DB of redis