Method: Puppet::Environments::Cached::MRUEntry#initialize

Defined in:
lib/puppet/environments.rb

#initialize(value, ttl_seconds) ⇒ MRUEntry

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MRUEntry.



578
579
580
581
582
583
584
# File 'lib/puppet/environments.rb', line 578

def initialize(value, ttl_seconds)
  super(value)
  @ttl = Time.now + ttl_seconds
  @ttl_seconds = ttl_seconds

  touch
end