Class: Circuitry::Locks::Memcache
- Inherits:
-
Object
- Object
- Circuitry::Locks::Memcache
- Includes:
- Base
- Defined in:
- lib/circuitry/locks/memcache.rb
Constant Summary
Constants included from Base
Base::DEFAULT_HARD_TTL, Base::DEFAULT_SOFT_TTL
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Memcache
constructor
A new instance of Memcache.
Methods included from Base
#hard_lock, #soft_lock, #unlock
Constructor Details
#initialize(options = {}) ⇒ Memcache
Returns a new instance of Memcache.
6 7 8 9 10 11 12 13 |
# File 'lib/circuitry/locks/memcache.rb', line 6 def initialize( = {}) super() self.client = .fetch(:client) do require 'dalli' ::Dalli::Client.new([:host], ) end end |