Skip to content

Commit ad0f30b

Browse files
authored
Update default timeout docs
This pr, redis-rb/redis-client@90d219f#diff-dd62159b97639b7e6aca9f5c209b2ff5a74924bf38699581dcdc5074e2e62bbfL7 set it to 1 second. It is also documented in the change-logs as being set to 1 second for version 5
1 parent 8e9183a commit ad0f30b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def drivers
4545
# @option options [String] :host ("127.0.0.1") server hostname
4646
# @option options [Integer] :port (6379) server port
4747
# @option options [String] :path path to server socket (overrides host and port)
48-
# @option options [Float] :timeout (5.0) timeout in seconds
48+
# @option options [Float] :timeout (1.0) timeout in seconds
4949
# @option options [Float] :connect_timeout (same as timeout) timeout for initial connect in seconds
5050
# @option options [String] :username Username to authenticate against server
5151
# @option options [String] :password Password to authenticate against server

0 commit comments

Comments
 (0)