mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Add a serve_stale option for plugin/cache (#3468)
Automatically submitted.
This commit is contained in:
committed by
corbot[bot]
parent
24176a97e6
commit
b4df2d0d4c
2
plugin/cache/cache.go
vendored
2
plugin/cache/cache.go
vendored
@@ -36,6 +36,8 @@ type Cache struct {
|
||||
duration time.Duration
|
||||
percentage int
|
||||
|
||||
staleUpTo time.Duration
|
||||
|
||||
// Testing.
|
||||
now func() time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user