lestrrat-go / httprc

Quasi Up-to-date HTTP In-memory Cache
MIT License
17 stars 5 forks source link

Semantics for failed refreshes. #9

Closed pdewilde closed 1 year ago

pdewilde commented 1 year ago

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?

lestrrat commented 1 year ago

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