Add a serve_stale option for plugin/cache (#3468)
Automatically submitted.
This commit is contained in:
parent
24176a97e6
commit
b4df2d0d4c
6 changed files with 166 additions and 15 deletions
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue