t.n.c.CacheResolver(common.ResolverBase) : class documentation

Part of twisted.names.cache View Source View In Hierarchy

A resolver that serves records from a local, memory cache.
Method __init__ Undocumented
Method __setstate__ Undocumented
Method __getstate__ Undocumented
Method lookupAllRecords
Method cacheResult Cache a DNS entry.
Method clearEntry Undocumented
Instance Variable _reactor A provider of interfaces.IReactorTime.
Method _lookup Undocumented

Inherited from ResolverBase:

Method exceptionForCode Convert a response code (one of the possible values of dns.Message.rCode to an exception instance representing it.
Method query Dispatch query to the method which can handle its type.
Method lookupAddress
Method lookupIPV6Address
Method lookupAddress6
Method lookupMailExchange
Method lookupNameservers
Method lookupCanonicalName
Method lookupMailBox
Method lookupMailGroup
Method lookupMailRename
Method lookupPointer
Method lookupAuthority
Method lookupNull
Method lookupWellKnownServices
Method lookupService
Method lookupHostInfo
Method lookupMailboxInfo
Method lookupText
Method lookupSenderPolicy
Method lookupResponsibility
Method lookupAFSDatabase
Method lookupZone
Method lookupNamingAuthorityPointer
Method getHostByName
Class Variable _errormap A dict mapping DNS protocol failure response codes to exception classes which will be used to represent those failures.
Method _cbRecords Undocumented
_reactor =
A provider of interfaces.IReactorTime.
def __init__(self, cache=None, verbose=0, reactor=None): (source)
Undocumented
def __setstate__(self, state): (source)
Undocumented
def __getstate__(self): (source)
Undocumented
def _lookup(self, name, cls, type, timeout): (source)
Undocumented
def lookupAllRecords(self, name, timeout=None): (source)
See Alsotwisted.names.client.lookupAllRecords
def cacheResult(self, query, payload, cacheTime=None): (source)
Cache a DNS entry.
Parametersquerya dns.Query instance.
payloada 3-tuple of lists of dns.RRHeader records, the matching result of the query (answers, authority and additional).
cacheTimeThe time (seconds since epoch) at which the entry is considered to have been added to the cache. If None is given, the current time is used.
def clearEntry(self, query): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2012-12-26 12:18:15.