This is an automated email from the ASF dual-hosted git repository. tzssangglass pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 2238b54 docs: improve redis password/timeout desc (#4783)
2238b54 is described below
commit 2238b547cb64515a90eeb6232dfd9ee5b979681a
Author: okaybase <[email protected]>
AuthorDate: Tue Aug 10 00:55:27 2021 +0800
docs: improve redis password/timeout desc (#4783)
---
docs/en/latest/plugins/limit-count.md | 4 ++--
docs/zh/latest/plugins/limit-count.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/en/latest/plugins/limit-count.md
b/docs/en/latest/plugins/limit-count.md
index b178ac5..9b921be 100644
--- a/docs/en/latest/plugins/limit-count.md
+++ b/docs/en/latest/plugins/limit-count.md
@@ -45,9 +45,9 @@ Limit request rate by a fixed number of requests in a given
time window.
| allow_degradation | boolean | optional
| false |
| Whether to enable plugin degradation when the limit-count function
is temporarily unavailable(e.g. redis timeout). Allow requests to continue when
the value is set to true, default false. |
| redis_host | string | required for `redis` |
|
| When using the `redis` policy, this
property specifies the address of the Redis server.
|
| redis_port | integer | optional |
6379 | [1,...]
| When using the `redis` policy, this
property specifies the port of the Redis server.
|
-| redis_password | string | optional |
|
| When using the `redis` policy, this
property specifies the password of the Redis server.
|
+| redis_password | string | optional |
|
| When using the `redis` or
`redis-cluster` policy, this property specifies the password of the Redis
server.
[...]
| redis_database | integer | optional | 0
| redis_database >= 0
| When using the `redis` policy, this
property specifies the database you selected of the Redis server, and only for
non Redis cluster mode (single instance mode or Redis public cloud service that
provides single entry).
|
-| redis_timeout | integer | optional |
1000 | [1,...]
| When using the `redis` policy, this
property specifies the timeout in milliseconds of any command submitted to the
Redis server.
|
+| redis_timeout | integer | optional |
1000 | [1,...]
| When using the `redis` or
`redis-cluster` policy, this property specifies the timeout in milliseconds of
any command submitted to the Redis server.
[...]
| redis_cluster_nodes | array | required when policy is `redis-cluster` |
|
| When using `redis-cluster` policy,This
property is a list of addresses of Redis cluster service nodes (at least two).
[...]
| redis_cluster_name | string | required when policy is `redis-cluster` |
|
| When using `redis-cluster` policy, this
property is the name of Redis cluster service nodes.
[...]
diff --git a/docs/zh/latest/plugins/limit-count.md
b/docs/zh/latest/plugins/limit-count.md
index fa78406..4e97832 100644
--- a/docs/zh/latest/plugins/limit-count.md
+++ b/docs/zh/latest/plugins/limit-count.md
@@ -48,9 +48,9 @@ title: limit-count
| allow_degradation | boolean | 可选
| false |
| 当限流插件功能临时不可用时(例如,Redis 超时)是否允许请求继续。当值设置为 true 时则自动允许请求继续,默认值是 false。|
| redis_host | string | `redis` 必须 |
|
| 当使用 `redis` 限速策略时,该属性是 Redis 服务节点的地址。
[...]
| redis_port | integer | 可选 | 6379
| [1,...]
| 当使用 `redis` 限速策略时,该属性是 Redis 服务节点的端口
[...]
-| redis_password | string | 可选 |
|
| 当使用 `redis` 限速策略时,该属性是 Redis 服务节点的密码。
[...]
+| redis_password | string | 可选 |
|
| 当使用 `redis` 或者 `redis-cluster` 限速策略时,该属性是
Redis 服务节点的密码。
[...]
| redis_database | integer | 可选 | 0
| redis_database >= 0
| 当使用 `redis` 限速策略时,该属性是 Redis 服务节点中使用的
database,并且只针对非 Redis 集群模式(单实例模式或者提供单入口的 Redis 公有云服务)生效。
[...]
-| redis_timeout | integer | 可选 | 1000
| [1,...]
| 当使用 `redis` 限速策略时,该属性是 Redis 服务节点以毫秒为单位的超时时间
[...]
+| redis_timeout | integer | 可选 | 1000
| [1,...]
| 当使用 `redis` 或者 `redis-cluster` 限速策略时,该属性是
Redis 服务节点以毫秒为单位的超时时间
[...]
| redis_cluster_nodes | array | 当 policy 为 `redis-cluster` 时必填|
|
| 当使用 `redis-cluster` 限速策略时,该属性是 Redis
集群服务节点的地址列表(至少需要两个地址)。
[...]
| redis_cluster_name | string | 当 policy 为 `redis-cluster` 时必填 |
|
| 当使用 `redis-cluster` 限速策略时,该属性是 Redis 集群服务节点的名称。
[...]
