Sha256: b7acc5df7a53c1807b9429367985c997912e7e25ddc08939abe46ff83b55ca29

Contents?: true

Size: 520 Bytes

Versions: 11

Compression:

Stored size: 520 Bytes

Contents

require "infopark_component_cache/delayed_guard"
require "infopark_component_cache/guards/last_changed"

module InfoparkComponentCache
  module Guards
    # @author Tomasz Przedmojski <tomasz.przedmojski@infopark.de>
    #
    # This class is a delayed version of LastChanged guard.
    # The preconfigured delay is 10 seconds.
    #
    # @see DelayedGuard
    # @see LastChanged
    class DelayedLastChanged < LastChanged
      include DelayedGuard
      delay :current_last_changed, for: 10.seconds
    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/delayed_last_changed.rb
infopark_component_cache-5.0.1 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-4.2.0 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-4.1.0 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-4.0.1 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-4.0.0 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-3.2.0 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-3.1.1 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-3.1.0 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-3.0.0 lib/infopark_component_cache/guards/delayed_last_changed.rb
infopark_component_cache-2.0.0 lib/infopark_component_cache/guards/delayed_last_changed.rb