Class: SimpleLock::Redis

Inherits:
Object
  • Object
show all
Extended by:
Delegation
Defined in:
lib/simple_lock/redis.rb

Constant Summary

Constants included from Delegation

Delegation::DELEGATION_RESERVED_KEYWORDS, Delegation::DELEGATION_RESERVED_METHOD_NAMES, Delegation::RUBY_RESERVED_KEYWORDS

Instance Method Summary collapse

Methods included from Delegation

delegate, delegate_missing_to

Constructor Details

#initialize(url: nil) ⇒ Redis

Returns a new instance of Redis.



7
8
9
# File 'lib/simple_lock/redis.rb', line 7

def initialize(url: nil)
  @redis = ::Redis.new(url: url)
end