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 Undocumented
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 Undocumented
Method lookupAddress Undocumented
Method lookupIPV6Address Undocumented
Method lookupAddress6 Undocumented
Method lookupMailExchange Undocumented
Method lookupNameservers Undocumented
Method lookupCanonicalName Undocumented
Method lookupMailBox Undocumented
Method lookupMailGroup Undocumented
Method lookupMailRename Undocumented
Method lookupPointer Undocumented
Method lookupAuthority Undocumented
Method lookupNull Undocumented
Method lookupWellKnownServices Undocumented
Method lookupService Undocumented
Method lookupHostInfo Undocumented
Method lookupMailboxInfo Undocumented
Method lookupText Undocumented
Method lookupSenderPolicy Undocumented
Method lookupResponsibility Undocumented
Method lookupAFSDatabase Undocumented
Method lookupZone Undocumented
Method lookupNamingAuthorityPointer Undocumented
Method getHostByName Undocumented
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)
Undocumented
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 2014-05-12 18:27:00.