Home | Trees | Indices | Help |
|
---|
|
object --+ | LRUCache
Bounded least-recently-used DNS answer cache.
This cache is better than the simple cache (above) if you're running a web crawler or other process that does a lot of resolutions. The LRUCache has a maximum number of nodes, and when it is full, the least-recently used node is removed to make space for a new one.
|
|||
|
|||
|
|||
dns.resolver.Answer object or None |
|
||
|
|||
|
|||
Inherited from |
|
|||
dict |
data A dictionary of cached data |
||
int |
max_size The maximum number of nodes |
||
LRUCacheNode object |
sentinel sentinel node for circular doubly linked list of nodes |
|
|||
Inherited from |
|
Initialize a DNS cache.
|
Get the answer associated with key. Returns None if no answer is cached for the key.
|
Associate key and value in the cache.
|
Flush the cache. If key is specified, only that item is flushed. Otherwise the entire cache is flushed.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Sep 30 08:16:43 2016 | http://epydoc.sourceforge.net |