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 add(k)
      if (k == nil)
        return false
      elsif (k.instance_of?RRSet)
        add_rrset(k)
      elsif (k.kind_of?KeyCache)
        kaes = k.keys_and_expirations
        kaes.keys.each { |keykey|
          priv_add_key(keykey[1], keykey[0])
        }
      else
        raise ArgumentError.new("Expected an RRSet or KeyCache! Got #{k.class}")
      end
      return true
    end
def add ( k ) if ( k == nil ) return false elsif ( k . instance_of? RRSet ) add_rrset ( k ) elsif ( k . kind_of? KeyCache ) kaes = k . keys_and_expirations kaes . keys . each { | keykey | priv_add_key ( keykey [ 1 ] , keykey [ 0 ] ) } else raise ArgumentError . new ( "Expected an RRSet or KeyCache! Got #{k.class}" ) end return true 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
#             priv_add_key(keykey, kaes[keykey])
k
<not_specific>