Class: Money::Distributed::Redis

Inherits:
Object
  • Object
show all
Defined in:
lib/money/distributed/redis.rb

Overview

Wrapper over different parameters that can be provided for redis

Instance Method Summary collapse

Constructor Details

#initialize(redis) ⇒ Redis

Returns a new instance of Redis.



8
9
10
# File 'lib/money/distributed/redis.rb', line 8

def initialize(redis)
  @redis_proc = build_redis_proc(redis)
end

Instance Method Details

#exec(&block) ⇒ Object



12
13
14
# File 'lib/money/distributed/redis.rb', line 12

def exec(&block)
  @redis_proc.call(&block)
end