lestrrat-go / httprc

Quasi Up-to-date HTTP In-memory Cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Semantics for failed refreshes.

pdewilde opened this issue · comments

I've been unable to find in the documentation what happens if a cache refresh fails (for example a timeout or 4xx).

Does the cached item get evicted, or does the previous entry stay around until a successful refresh happens?

They stay. The idea is that this way intermittent outages on the remote side do not immediately affect key usage.