7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/redic/connection.rb', line 7
def self.new(uri)
connection = Hiredis::Connection.new
if uri.scheme == "unix"
connection.connect_unix(uri.path, TIMEOUT)
else
connection.connect(uri.host, uri.port, TIMEOUT)
end
connection
end
|