Fetches a fresh value. Rejections are retried according to the retry policy.
The logger to derive this value's child logger from.
The name of the cached value (for tracing/logs).
OptionalonCalled when a new value is cached. Use to emit changes if needed.
OptionalshouldDetermines whether a non-transient error should be cached. By default errors are not cached, i.e. the next attempt retries the fetch.
OptionalttlThe default time-to-live before the value gets refreshed, overridable per run via PollingCachedValue.start. If undefined the value never expires; use PollingCachedValue.refresh to clear the cache.
How to fetch and cache a given value, as passed to PollingCachedValue.