aboutsummaryrefslogtreecommitdiff
path: root/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'middleware')
-rw-r--r--middleware/cache/README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/middleware/cache/README.md b/middleware/cache/README.md
index aade84694..fe15d6878 100644
--- a/middleware/cache/README.md
+++ b/middleware/cache/README.md
@@ -20,10 +20,19 @@ A cache mostly makes sense with a middleware that is potentially slow, i.e. a pr
answer, or to minimize backend queries for middleware like etcd. Using a cache with the file
middleware essentially doubles the memory load with no concealable increase of query speed.
+The minimum TTL allowed on resource records is 5 seconds.
+
## Examples
~~~
-cache
+cache 10
+~~~
+
+Enable caching for all zones, but cap everything to a TTL of 10 seconds.
+
+~~~
+proxy . 8.8.8.8:53
+cache miek.nl
~~~
-Enable caching for all zones.
+Proxy to Google Public DNS and only cache responses for miek.nl (or below).