This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade cache-manager from 5.4.0 to 5.5.1.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **2 versions** ahead of your current version.
- The recommended version was released **24 days ago**, on 2024-04-05.
Release notes Package name: cache-manager
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
Add refreshThreshold as parameter of wrap function. Fix #606 by @ lchenay in #630
from cache-manager GitHub release notes
**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.*
For more information:
🧐 [View latest project report](https://app.snyk.io/org/bcgov/project/2f897ce3-6f01-4342-b5a5-c7c918e3e882?utm_source=github&utm_medium=referral&page=upgrade-pr)
🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/bcgov/project/2f897ce3-6f01-4342-b5a5-c7c918e3e882/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr)
🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/bcgov/project/2f897ce3-6f01-4342-b5a5-c7c918e3e882/settings/integration?pkg=cache-manager&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)
---
Thanks for the PR!
Deployments, as required, will be available below:
- [Frontend](https://onroutebc-1365-frontend.apps.silver.devops.gov.bc.ca)
- [Vehicles](https://onroutebc-1365-vehicles.apps.silver.devops.gov.bc.ca/api)
- [Dops](https://onroutebc-1365-dops.apps.silver.devops.gov.bc.ca/api)
- [TPS-Migration](https://onroutebc-1365-tps-migration.apps.silver.devops.gov.bc.ca/api)
Please create PRs in draft mode. Mark as ready to enable:
- [Analysis Workflow](https://github.com/bcgov/onroutebc/actions/workflows/analysis.yml)
After merge, new images are promoted to:
- [Merge Workflow](https://github.com/bcgov/onroutebc/actions/workflows/merge.yml)
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade cache-manager from 5.4.0 to 5.5.1.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.- The recommended version is **2 versions** ahead of your current version. - The recommended version was released **24 days ago**, on 2024-04-05.
Release notes
Package name: cache-manager
Added Event Errors
Cache Manager now does not throw errors by default. Instead, all errors are evented through the error event. Here is an example on how to use it:
What's Changed
New Contributors
Full Changelog: v5.4.0...v5.5.0
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
**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.* For more information: