Class: InMemoryCache

Inherits:
Hash
  • Object
show all
Defined in:
lib/ObjectModel/Tools/InMemoryCache.rb

Instance Method Summary collapse

Constructor Details

#initialize(repository, *parameters) ⇒ InMemoryCache

Returns a new instance of InMemoryCache.



2
3
4
# File 'lib/ObjectModel/Tools/InMemoryCache.rb', line 2

def initialize repository, *parameters
	super()
end

Instance Method Details

#update(transaction) ⇒ Object



6
7
8
# File 'lib/ObjectModel/Tools/InMemoryCache.rb', line 6

def update transaction
	transaction.copies.each{|entity_id, c| delete entity_id if c.deleted?}
end