Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

v0.5: Add support for failover cache (#23)

Compare
Choose a tag to compare
@mikefrancis mikefrancis released this 25 Feb 08:39
c579789
- Changes cache TTL default to 15s, the standard default
- Add unleash.cache.failover option that will pull the last successful result from the cache
  - This setting is independent of regular caching
  - The cache is always stored, to allow enabling the feature during a failure incidence
- This change also moves the requests for features out of the constructor
  - Possible to use in Facades
  - Still "cached" for the lifetime of the Unleash object