Sha256: 0964de2c8d66d9e28a24902680d99703912789259ea4bbc65dcf61b46a9fbb48

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 Bytes

Contents

require 'infopark_component_cache/consistency_guard'

module InfoparkComponentCache
  module Guards
    # @author Tomasz Przedmojski <tomasz.przedmojski@infopark.de>
    #
    # This is a dummy Guard, mostly for tests purposes.
    # It ensures that the cache is always consistent (provided
    # other guards are also consistent!)
    class AlwaysConsistent < ConsistencyGuard
      def consistent?
        true
      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/always_consistent.rb
infopark_component_cache-1.0.0 lib/infopark_component_cache/guards/always_consistent.rb