Class: Circuitry::Locks::Memory

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/circuitry/locks/memory.rb

Constant Summary

Constants included from Base

Base::DEFAULT_HARD_TTL, Base::DEFAULT_SOFT_TTL

Instance Attribute Summary

Attributes included from Base

#hard_ttl, #soft_ttl

Class Method Summary collapse

Methods included from Base

#hard_lock, #initialize, #soft_lock, #unlock

Class Method Details

.semaphoreObject


11
12
13
# File 'lib/circuitry/locks/memory.rb', line 11

def semaphore
  @semaphore ||= Mutex.new
end

.storeObject


7
8
9
# File 'lib/circuitry/locks/memory.rb', line 7

def store
  @store ||= {}
end