← Back to Changelog

2025-09-09

Release

Cacheable v2

cacheable is now using @cacheable/utils, @cacheable/memoize, and @cacheable/memory for its core functionality as we are moving to this modular architecture and plan to eventually have these modules across cache-manager and flat-cache. In addition there are some breaking changes:

  • get() and getMany() no longer have the raw option but instead we have built out getRaw() and getManyRaw() to use.
  • All get related functions now support nonBlocking which means if nonBlocking: true the primary store will return what it has and then in the background will work to sync from secondary storage for any misses. You can disable this by setting at the get function level the option nonBlocking: false which will look for any missing keys in the secondary.
  • Keyv v5.5+ is now the recommended supported version as we are using its native getMany* and getRaw*
  • Wrap and getOrSet have been updated with more robust options including the ability to use your own serialize function for creating the key in wrap.
  • hash has now been updated with robust options and also an enum for setting the algorithm.

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable/compare/2025-08-26...2025-09-09