File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments