Class: InMemoryCache
- Inherits:
-
Hash
- Object
- Hash
- InMemoryCache
- Defined in:
- lib/ObjectModel/Tools/InMemoryCache.rb
Instance Method Summary collapse
-
#initialize(repository, *parameters) ⇒ InMemoryCache
constructor
A new instance of InMemoryCache.
- #update(transaction) ⇒ Object
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 |