Sha256: cd56b048b939e3049c73a75ad96907969214300bbf10bdab2d201791f99865eb
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
require 'infopark_component_cache/consistency_guard' module InfoparkComponentCache module Guards # @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 class ValuePresent < ConsistencyGuard def consistent? cache.exist?(component.cache_key) end def guard! # noop end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
infopark_component_cache-1.1.0 | lib/infopark_component_cache/guards/value_present.rb |
infopark_component_cache-1.0.0 | lib/infopark_component_cache/guards/value_present.rb |