]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/dnsdist-cache.hh
dnsdist: Add/fix cache cleaning options
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 29 Feb 2016 14:32:35 +0000 (15:32 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 29 Feb 2016 14:36:38 +0000 (15:36 +0100)
commit4275aaba2477de0df6c50690d47644030fd27828
tree851c4d57dde99bd4d431c497c2d92d48a963558c
parent5a8f210fe751d4310b04bf2167dce4d0a9537c3d
dnsdist: Add/fix cache cleaning options

The function to remove expired entries was broken, and we were
missing a way to nuke a lot of valid entries at once.
We can now:
- remove entries by qname and qtype
- remove n expired entries
- remove n entries

Fix #3468.
pdns/README-dnsdist.md
pdns/dnsdist-cache.cc
pdns/dnsdist-cache.hh
pdns/dnsdist-lua2.cc
pdns/dnsdist.cc
pdns/test-dnsdistpacketcache_cc.cc