parameters: (self, key=None)
docstring: Flush the cache.
  
          If I{key} is specified, only that item is flushed.  Otherwise
          the entire cache is flushed.
  
          @param key: the key to flush
          @type key: (dns.name.Name, int, int) tuple or None
docstring_summary: Flush the cache.
docstring_tokens: Flush the cache .
function: def flush(self, key=None):
          """Flush the cache.
  
          If I{key} is specified, only that item is flushed.  Otherwise
          the entire cache is flushed.
  
          @param key: the key to flush
          @type key: (dns.name.Name, int, int) tuple or None
          """
  
          if not key is None:
              if self.data.has_key(key):
                  del self.data[key]
          else:
              self.data = {}
              self.next_cleaning = time.time() + self.cleaning_interval
function_tokens: def flush ( self , key = None ) : if not key is None : if self . data . has_key ( key ) : del self . data [ key ] else : self . data = { } self . next_cleaning = time . time ( ) + self . cleaning_interval