]> granicus.if.org Git - pdns/commitdiff
Merge pull request #5136 from rgacogne/dnsdist-cache-dont-age
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 3 Apr 2017 12:09:08 +0000 (14:09 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2017 12:09:08 +0000 (14:09 +0200)
dnsdist: Add an option so the packet cache entries don't age

1  2 
pdns/README-dnsdist.md
pdns/dnsdist-cache.cc
pdns/dnsdist-cache.hh
pdns/dnsdist-console.cc
pdns/dnsdist-lua2.cc
regression-tests.dnsdist/test_Caching.py

index 613647f795e587672a8922f85dc939116be02902,e5f179e0811b8c994f4c6923dc24c8115e973996..04e25eabcf4e758b3445ca62c1124610c6e5a8b6
@@@ -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
Simple merge
Simple merge
Simple merge
Simple merge