aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/cache.go
diff options
context:
space:
mode:
authorGravatar Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> 2019-11-29 11:17:50 -0400
committerGravatar corbot[bot] <39114087+corbot[bot]@users.noreply.github.com> 2019-11-29 15:17:50 +0000
commitb4df2d0d4c2d2014b113f9f8caf1f1b2ed6dc192 (patch)
tree090781b18a8b384c7b5005fba9d23df8e8caa938 /plugin/cache/cache.go
parent24176a97e65e65a768e4e06b192f38da511d1025 (diff)
downloadcoredns-b4df2d0d4c2d2014b113f9f8caf1f1b2ed6dc192.tar.gz
coredns-b4df2d0d4c2d2014b113f9f8caf1f1b2ed6dc192.tar.zst
coredns-b4df2d0d4c2d2014b113f9f8caf1f1b2ed6dc192.zip
Add a serve_stale option for plugin/cache (#3468)
Automatically submitted.
Diffstat (limited to 'plugin/cache/cache.go')
-rw-r--r--plugin/cache/cache.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/cache/cache.go b/plugin/cache/cache.go
index 43a40c409..6b50c51cc 100644
--- a/plugin/cache/cache.go
+++ b/plugin/cache/cache.go
@@ -36,6 +36,8 @@ type Cache struct {
duration time.Duration
percentage int
+ staleUpTo time.Duration
+
// Testing.
now func() time.Time
}