Method: RedisClient#connect_to_server

Defined in:
lib/rubyredis.rb

#connect_to_serverObject



100
101
102
103
# File 'lib/rubyredis.rb', line 100

def connect_to_server
    @sock = connect_to(@host,@port,@timeout == 0 ? nil : @timeout)
    call_command(["select",@db]) if @db != 0
end