Module: Mredis::Config

Included in:
Mredis
Defined in:
lib/mredis/config.rb

Constant Summary collapse

OPTION_KEYS =
[
  :host,
  :port,
  :db
]

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



10
11
12
13
# File 'lib/mredis/config.rb', line 10

def configure
  yield self
  $mredis = Redis.new(:host => host, :port => port, :db => db)
end