Sha256: 901f79a60b04727fd995c0130e3530f92c57a528a5a5ba4d02aa2b68f2e0d44d

Contents?: true

Size: 484 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
infopark_component_cache-5.0.2 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-5.0.1 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-4.2.0 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-4.1.0 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-4.0.1 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-4.0.0 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-3.2.0 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-3.1.1 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-3.1.0 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-3.0.0 lib/infopark_component_cache/guards/always_consistent.rb
infopark_component_cache-2.0.0 lib/infopark_component_cache/guards/always_consistent.rb