module EntityStore::Controls::Entity::Cached
Public Class Methods
add(id, store)
click to toggle source
# File lib/entity_store/controls/entity.rb, line 29 def self.add(id, store) entity = self.example version = Version::Cached.example store.cache.add(id, entity, version, persisted_version: version) return entity, version end
example()
click to toggle source
# File lib/entity_store/controls/entity.rb, line 25 def self.example Example.build :sum => sum end
sum()
click to toggle source
# File lib/entity_store/controls/entity.rb, line 38 def self.sum 1 end