Skip to content

Commit b3e9169

Browse files
committed
Docs for response_timeout
1 parent d5e7aa1 commit b3e9169

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

relay-config/src/redis.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ pub struct PartialRedisConfigOptions {
3939
/// blocking when the pool is exhausted.
4040
#[serde(skip_serializing_if = "Option::is_none")]
4141
pub wait_timeout: Option<u64>,
42+
/// Sets the maximum time in seconds to wait for a result when sending a Redis command.
43+
///
44+
/// If a command exceeds this timeout, the connection will be recycled.
45+
#[serde(skip_serializing_if = "Option::is_none")]
4246
pub response_timeout: Option<u64>,
4347
/// Sets the number of times after which the connection will check whether it is active when
4448
/// being recycled.

relay-redis/src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ pub struct RedisConfigOptions {
2727
/// will fail with a timeout error. This setting helps prevent indefinite
2828
/// blocking when the pool is exhausted.
2929
pub wait_timeout: Option<u64>,
30+
/// Sets the maximum time in seconds to wait for a result when sending a Redis command.
31+
///
32+
/// If a command exceeds this timeout, the connection will be recycled.
33+
#[serde(skip_serializing_if = "Option::is_none")]
3034
pub response_timeout: Option<u64>,
3135
/// Sets the number of times after which the connection will check whether it is active when
3236
/// being recycled.

0 commit comments

Comments
 (0)