Cache.rb

Path: lib/Dnsruby/Cache.rb
Last Update: Thu Oct 22 23:49:00 +0000 2009

This class implements a cache. It stores data under qname-qclass-qtype tuples. Each tuple indexes a CacheData object (which stores a Message, and an expiration). If a new Message is stored to a tuple, it will overwrite the previous Message. When a Message is retrieved from the cache, the header and ttls will be "fixed" - i.e. AA cleared, etc.

[Validate]