jaredwray / cache-manager

Cache module for Node.JS
MIT License
1.4k stars 152 forks source link

proxy underlying caches errors to multicache #684

Closed corradodellorusso closed 2 months ago

corradodellorusso commented 2 months ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) With the current implementation, caches push the errors on the event emitter. When using multicache, you should ideally subscribe to multicache and all the underlying caches. With this change, subscribing to multicache you also receive errors from underlying caches.