Sha256: ab50d38e294b9ad644afb12e7e779fab05637cf9de330af8f62230b5874f82d1

Contents?: true

Size: 498 Bytes

Versions: 11

Compression:

Stored size: 498 Bytes

Contents

require "infopark_component_cache/delayed_guard"
require "infopark_component_cache/guards/obj_count"

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