You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/node-cache/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -413,6 +413,18 @@ If you need key limits with an external store, configure the limit at the storag
413
413
414
414
The `stats` option and internal stats tracking have been removed from `NodeCacheStore`. The stats were collected internally but never exposed via a public API, making them effectively unused.
415
415
416
+
## Upgraded `hookified` to v2
417
+
418
+
The underlying `hookified` dependency has been upgraded from v1 to v2. Both `NodeCache` and `NodeCacheStore` extend `Hookified`. Key changes in hookified v2:
419
+
420
+
-`logger` property renamed to `eventLogger`
421
+
-`Hook` type renamed to `HookFn`
422
+
-`onHook` signature changed to handle `IHook` interface
423
+
- Removed `throwHookErrors` configuration option
424
+
-`throwOnEmptyListeners` default changed to `true`
425
+
426
+
If you use hooks or advanced event features from the `Hookified` base class directly, review the [hookified v2 changelog](https://github.com/jaredwray/hookified) for details.
427
+
416
428
# How to Contribute
417
429
418
430
You can contribute by forking the repo and submitting a pull request. Please make sure to add tests and update the documentation. To learn more about how to contribute go to our main README [https://github.com/jaredwray/cacheable](https://github.com/jaredwray/cacheable). This will talk about how to `Open a Pull Request`, `Ask a Question`, or `Post an Issue`.
0 commit comments