class InfoparkComponentCache::Guards::ValuePresent
@author Tomasz Przedmojski <tomasz.przedmojski@infopark.de>
This Guard class ensures that the cache object for the component exists, i.e. when reading the cache with component's key one does get a value
Public Instance Methods
consistent?()
click to toggle source
# File lib/infopark_component_cache/guards/value_present.rb, line 11 def consistent? cache.exist?(component.cache_key) end
guard!()
click to toggle source
# File lib/infopark_component_cache/guards/value_present.rb, line 15 def guard! # noop end