Emit invalidate events from client by sastcsgh · Pull Request #3076 · redis/node-redis
Hi @sastcsgh, thanks for the PR, much appreciated! Im so sorry, we just merged a PR that touches on how you interact with the commands-queue. Those changes are in a bit of a conflict with your changes. It would be great if you fix the conflicts, then I can review more thoroughly.
Just to give you some hints:
The new way we hook to push events on the commands-queue is via addPushHandler, also take a look at the PushHandler definition. Keep in mind that currently, client-side caching is fully consuming the invalidate push message by returning true ( maybe you can make it return false, then return true from your new handler )