npm cache-manager 5.5.0
v5.5.0

latest releases: 5.6.1, 5.6.0, 5.5.3...
2 months ago

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:

const memoryCache = await caching('memory', {
  max: 100,
  ttl: 10 * 1000 /*milliseconds*/,
});
memoryCache.on('error', (error) => {
  console.error('Cache error:', error);
});

What's Changed

New Contributors

Full Changelog: v5.4.0...v5.5.0

Don't miss a new cache-manager release

NewReleases is sending notifications on new releases.