Class: PuppetLibrary::Http::Cache::InMemory::Reaper
- Inherits:
-
Object
- Object
- PuppetLibrary::Http::Cache::InMemory::Reaper
- Defined in:
- lib/puppet_library/http/cache/in_memory.rb
Instance Method Summary collapse
-
#initialize(millis_to_live) ⇒ Reaper
constructor
A new instance of Reaper.
- #wants_to_kill?(entry) ⇒ Boolean
Constructor Details
#initialize(millis_to_live) ⇒ Reaper
Returns a new instance of Reaper.
64 65 66 |
# File 'lib/puppet_library/http/cache/in_memory.rb', line 64 def initialize(millis_to_live) @millis_to_live = millis_to_live end |
Instance Method Details
#wants_to_kill?(entry) ⇒ Boolean
68 69 70 |
# File 'lib/puppet_library/http/cache/in_memory.rb', line 68 def wants_to_kill?(entry) entry.age_millis > @millis_to_live end |