Path: | lib/Dnsruby/Cache.rb |
Last Update: | Mon Sep 07 08:32:32 +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.