aboutsummaryrefslogtreecommitdiff
path: root/test/middleware_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-10-02 08:31:44 +0100
committerGravatar GitHub <noreply@github.com> 2016-10-02 08:31:44 +0100
commite54c232c8c97fb163647c697e921e6f69846e304 (patch)
treeb75fff81276e58a2ec4417c6c6742a22d6156f27 /test/middleware_test.go
parent9b6b8d276269cb1a36b7f78da4caa51106dff0ed (diff)
downloadcoredns-e54c232c8c97fb163647c697e921e6f69846e304.tar.gz
coredns-e54c232c8c97fb163647c697e921e6f69846e304.tar.zst
coredns-e54c232c8c97fb163647c697e921e6f69846e304.zip
middleware/cache: split cache in positive and negative and use lru (#298)
Make the cache memory bounded, by using a LRU cache. Also split the cache in a positive and negative one - each with its own controls. Extend the cache stanza to allow for this: cache { positive limit [ttl] negative limit [ttl] } is now possible. This also add a cache_test.go in the toplevel test/ directory that exercises the caching path. Fixes #260
Diffstat (limited to 'test/middleware_test.go')
-rw-r--r--test/middleware_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/middleware_test.go b/test/middleware_test.go
index f7fefe78a..fb6fa2114 100644
--- a/test/middleware_test.go
+++ b/test/middleware_test.go
@@ -27,7 +27,7 @@ func benchmarkLookupBalanceRewriteCache(b *testing.B) {
ex, err := CoreDNSServer(corefile)
if err != nil {
- t.Fatalf("could not get CoreDNS serving instance: %s", err)
+ t.Fatalf("Could not get CoreDNS serving instance: %s", err)
}
udp, _ := CoreDNSServerPorts(ex, 0)
defer ex.Stop()