npm cache-manager 5.4.0
v5.4.0

latest releases: 6.1.2, 6.1.1, 6.1.0...
9 months ago

Refresh cache keys in background

Both the caching and multicaching modules support a mechanism to refresh expiring cache keys in background when using the wrap function.
This is done by adding a refreshThreshold attribute while creating the caching store or passing it to the wrap function.

If refreshThreshold is set and after retrieving a value from cache the TTL will be checked.
If the remaining TTL is less than refreshThreshold, the system will update the value asynchronously,
following same rules as standard fetching. In the meantime, the system will return the old value until expiration.

What's Changed

Full Changelog: v5.3.2...v5.4.0

Don't miss a new cache-manager release

NewReleases is sending notifications on new releases.