diff options
author | 2019-11-29 11:17:50 -0400 | |
---|---|---|
committer | 2019-11-29 15:17:50 +0000 | |
commit | b4df2d0d4c2d2014b113f9f8caf1f1b2ed6dc192 (patch) | |
tree | 090781b18a8b384c7b5005fba9d23df8e8caa938 /plugin/cache/cache.go | |
parent | 24176a97e65e65a768e4e06b192f38da511d1025 (diff) | |
download | coredns-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.go | 2 |
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 } |