vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/key_cache.rb
#:nodoc: all
#  Cache includes expiration time for keys
#  Cache removes expired records
:nodoc: all
Cache includes expiration time for keys
Cache removes expired records
: nodoc : all Cache includes expiration time for keys Cache removes expired records
def priv_add_key(k, exp)
      if (@keys[k] == nil)
        @keys[k.key_tag] = [exp,k]
      elsif ((@keys[k])[0] < exp)
        @keys[k.key_tag] = [exp,k]
      end
    end
def priv_add_key ( k , exp ) if ( @keys [ k ] == nil ) @keys [ k . key_tag ] = [ exp , k ] elsif ( ( @keys [ k ] ) [ 0 ] < exp ) @keys [ k . key_tag ] = [ exp , k ] end end
:nodoc: all
Cache includes expiration time for keys
Cache removes expired records
: nodoc : all Cache includes expiration time for keys Cache removes expired records
#  Check that the key does not already exist with a longer expiration!
k
<not_specific>
exp
<not_specific>