From: bert hubert Date: Mon, 3 Apr 2017 12:09:08 +0000 (+0200) Subject: Merge pull request #5136 from rgacogne/dnsdist-cache-dont-age X-Git-Tag: rec-4.1.0-alpha1~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ed91601d080cf72a0c0783da5ad300fdea357d;p=thirdparty%2Fpdns.git Merge pull request #5136 from rgacogne/dnsdist-cache-dont-age dnsdist: Add an option so the packet cache entries don't age --- c8ed91601d080cf72a0c0783da5ad300fdea357d diff --cc pdns/README-dnsdist.md index 613647f795,e5f179e081..04e25eabcf --- a/pdns/README-dnsdist.md +++ b/pdns/README-dnsdist.md @@@ -1539,9 -1537,9 +1541,9 @@@ instantiate a server with additional pa * `unsetCache()`: remove the packet cache from this pool * PacketCache related: * `expunge(n)`: remove entries from the cache, leaving at most `n` entries - * `expungeByName(DNSName [, qtype=ANY])`: remove entries matching the supplied DNSName and type from the cache + * `expungeByName(DNSName [, qtype=ANY, suffixMatch=false])`: remove entries matching the supplied DNSName and type from the cache. If suffixMatch is specified also removes names below DNSName * `isFull()`: return true if the cache has reached the maximum number of entries - * `newPacketCache(maxEntries[, maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60])`: return a new PacketCache + * `newPacketCache(maxEntries[, maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false])`: return a new PacketCache * `printStats()`: print the cache stats (hits, misses, deferred lookups and deferred inserts) * `purgeExpired(n)`: remove expired entries from the cache until there is at most `n` entries remaining in the cache * `toString()`: return the number of entries in the Packet Cache, and the maximum number of entries