Wrap native HTTP requests with RFC compliant cache support
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/jaredwray/cacheable/compare/2024-07-11...2024-08-05
Published by jaredwray 3 months ago
Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-07-03...2024-07-11
Published by jaredwray 4 months ago
Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-06-17...2024-07-03
Published by jaredwray 4 months ago
Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-06-05...2024-06-17
Published by jaredwray 5 months ago
Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-05-23...2024-06-05
Published by jaredwray 5 months ago
Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-05-22...2024-05-23
Published by jaredwray 5 months ago
Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-04-29...2024-05-22
Published by jaredwray 6 months ago
Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-04-05...2024-04-29
Published by jaredwray 7 months ago
We have migrated to the new mono repo and have included all packages from node-cache-manager
. We will be shutting down the github org and legacy repos in the next 30 days (May 5th). All issues should be here moving forward. In addition to the mono repo there are some changes:
cache-manager-redis-yet
- this has a breaking change of support from nodejs v16 to 18+Full Changelog: https://github.com/jaredwray/cache-manager/compare/v5.5.0...2024-04-05
Published by jaredwray 7 months ago
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:
const memoryCache = await caching('memory', {
max: 100,
ttl: 10 * 1000 /*milliseconds*/,
});
memoryCache.on('error', (error) => {
console.error('Cache error:', error);
});
Full Changelog: https://github.com/node-cache-manager/cache-manager/compare/v5.4.0...v5.5.0
Published by jaredwray 7 months ago
Full Changelog: https://github.com/jaredwray/cacheable/compare/v12.0.0...v12.0.1
Published by jaredwray 8 months ago
cacheable-request
now only supports nodejs 18+
Full Changelog: https://github.com/jaredwray/cacheable/compare/v11.0.0...v12.0.0
Published by jaredwray 9 months ago
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.
Full Changelog: https://github.com/node-cache-manager/node-cache-manager/compare/v5.3.2...v5.4.0
Published by jaredwray 9 months ago
This release has added support for Nodejs v20+
, fixing source map issues, and a major upgrade to get-stream v8+
and more. All functionality should remain the same but is a significant update that needs to validated with your use case. Any questions or concerns please log an issue here: https://github.com/jaredwray/cacheable/issues
Full Changelog: https://github.com/jaredwray/cacheable/compare/v10.2.12...v11.0.0
Published by jaredwray 10 months ago
Full Changelog: https://github.com/node-cache-manager/node-cache-manager/compare/v5.3.0...v5.3.2
Published by jaredwray 11 months ago
Major fix as 5.3.0
did not have the dist folder on release.
wrap
function by @douglascayers in https://github.com/node-cache-manager/node-cache-manager/pull/599
Full Changelog: https://github.com/node-cache-manager/node-cache-manager/compare/5.2.4...v5.3.1
Published by jaredwray 11 months ago
wrap
function by @douglascayers in https://github.com/node-cache-manager/node-cache-manager/pull/599
Full Changelog: https://github.com/node-cache-manager/node-cache-manager/compare/5.2.4...v5.3.0
Published by jaredwray about 1 year ago
async <T>(key: string, fn: () => Promise<T>, ttl?: WrapTTL<T>)
- https://github.com/node-cache-manager/node-cache-manager/pull/535
Full Changelog: https://github.com/node-cache-manager/node-cache-manager/compare/5.2.3...5.2.4
Published by jaredwray about 1 year ago
Full Changelog: https://github.com/jaredwray/cacheable/compare/2023-09-05...2023-10-05
Published by jaredwray about 1 year ago
Full Changelog: https://github.com/jaredwray/cacheable/compare/2023-07-26...2023-09-05