Add a serve_stale option for plugin/cache (#3468)

Automatically submitted.
This commit is contained in:
Gonzalo Paniagua Javier 2019-11-29 11:17:50 -04:00 committed by corbot[bot]
parent 24176a97e6
commit b4df2d0d4c
6 changed files with 166 additions and 15 deletions

View file

@ -36,6 +36,8 @@ type Cache struct {
duration time.Duration
percentage int
staleUpTo time.Duration
// Testing.
now func() time.Time
}