Class: Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/redisant/connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(host = nil, port = nil) ⇒ Connection

Returns a new instance of Connection.



2
3
4
# File 'lib/redisant/connection.rb', line 2

def initialize host=nil, port=nil
  $redis = Redis.new( host: host || '127.0.0.1', port: port || 6379 )
end