Method: Redis::Connection::TCPSocket.connect
- Defined in:
-
lib/redis/connection/ruby.rb,
lib/redis/connection/ruby.rb
118 119 120 121 122 123 124 125 |
# File 'lib/redis/connection/ruby.rb', line 118 def self.connect(host, port, timeout) Timeout.timeout(timeout) do sock = new(host, port) sock end rescue Timeout::Error raise TimeoutError end |