diff options
author | Bob Halley <halley@dnspython.org> | 2020-07-19 07:26:13 -0700 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2020-07-19 07:26:13 -0700 |
commit | 9369f00515a05dd8e96b3bba17bafa7c17c49d84 (patch) | |
tree | 59db240a1e223eb6e6bb6c6db405fef5104b285a /doc | |
parent | 20e329d623706dcaf3ab1088043e8b6f1568c0b1 (diff) | |
download | dnspython-9369f00515a05dd8e96b3bba17bafa7c17c49d84.tar.gz |
rename statistics class; add documentationcache_stats
Diffstat (limited to 'doc')
-rw-r--r-- | doc/resolver-caching.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/resolver-caching.rst b/doc/resolver-caching.rst index f39b8ad..c2150e8 100644 --- a/doc/resolver-caching.rst +++ b/doc/resolver-caching.rst @@ -11,7 +11,12 @@ the data, and will not return expired entries. Two thread-safe cache implementations are provided, a simple dictionary-based Cache, and an LRUCache which provides cache size -control suitable for use in web crawlers. +control suitable for use in web crawlers. Both are subclasses of +a common base class which provides basic statistics. The LRUCache can +also provide a hits count per cache entry. + +.. autoclass:: dns.resolver.CacheBase + :members: .. autoclass:: dns.resolver.Cache :members: @@ -19,3 +24,5 @@ control suitable for use in web crawlers. .. autoclass:: dns.resolver.LRUCache :members: +.. autoclass:: dns.resolver.CacheStatistics + :members: |