Class: SimpleLock::Redis
- Inherits:
-
Object
- Object
- SimpleLock::Redis
- 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
-
#initialize(url: nil) ⇒ Redis
constructor
A new instance of Redis.
Methods included from Delegation
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 |