 package
    
    
    
      package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v1.0.6
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Sep 13, 2015
  
      
  
    License: Apache-2.0
      
    
  
  
    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
      ¶
      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 LRU cache that holds on the a number of RRs or DNS messgas.
    
  
  
    
    
    
  New returns a new cache with the capacity and the ttl specified.
  
   
    
  
  
    
    
    
  Capacity returns the capacity of the cache as an int.
  
   
    
  
  
    
    
    
  InsertMessage inserts a message in the Cache. We will cache 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.
  
   
    
  
  
    
    
    
  Size returns the size of the cache as an int.
  
   
  
       
      
     
   
        
      
      
        
  
    
       Source Files
      ¶
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.