package
Version:
v0.0.0-...-6e82452
Opens a new window with list of versions in this module.
Published: Oct 27, 2014
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Key uses the name, type and rdata, which is serialized and then hashed as the key for the lookup.
QuestionKey creates a hash key from a question section. It creates a different key
for requests with DNSSEC.
Cache is a ...
New returns a new cache with the capacity and the ttl specified.
InsertMessage inserts a message in the Cache. We will cahce it for ttl seconds, which
should be a small (60...300) integer.
InsertSignature inserts a signature, the expiration time is used as the cache ttl.
Remove removes the element under key s from the cache.
Search returns .... and a boolean indicating if we found something
in the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.