v3.1.1
What's Changed
We've added new configuration options for fine control over behavior of the cache:
maxCacheAgeSeconds
- Maximum age, in seconds, that previously cached values are considered valid until new values will be fetched (default:0
)useExpiredCache
- Whether initialization will be considered successfully complete if expired cache values are loaded. If false, initialization will always wait for a fetch if cached values are expired. (default:false
)updateOnFetch
- Sets how the configuration is updated after a successful fetch (default:always
)always
- immediately start using the new configurationexpired
- immediately start using the new configuration only if the current one has expiredempty
- only use the new configuration if the current one is both expired and uninitialized/empty
Full Changelog: v3.1.0...v3.1.1