OptionalclockClock in ms (default Date.now).
OptionalmaxLRU capacity (default 1 000).
OptionalonCalled when a background refresh fails (the old entry is kept).
OptionalrefreshA hit after ttl * refreshAheadFactor triggers one background refresh (default 0.8).
OptionalstaleWithin ttl + staleWhileRevalidateMs a stale value is returned while one refresh runs (default 0).
OptionalttlEntry lifetime in ms (default 60 000). Negative results are cached for the same time.
Options of SecretCache (SPEC §3).