Class: Connection
- Inherits:
-
Object
- Object
- Connection
- Defined in:
- lib/redisant/connection.rb
Instance Method Summary collapse
-
#initialize(host = nil, port = nil) ⇒ Connection
constructor
A new instance of Connection.
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 |