Method: Circuitry::Locks::Redis#initialize
- Defined in:
- lib/circuitry/locks/redis.rb
#initialize(options = {}) ⇒ Redis
Returns a new instance of Redis.
6 7 8 9 10 11 12 13 |
# File 'lib/circuitry/locks/redis.rb', line 6 def initialize( = {}) super() self.client = .fetch(:client) do require 'redis' ::Redis.new() end end |